1 user_role_layout_access.inc UserRoleLayoutAccess::__construct($plugin_name, array $data = array())

Constructor for a Layout access rule.

Overrides LayoutAccess::__construct

File

core/modules/layout/plugins/access/user_role_layout_access.inc, line 10
Plugin to provide access control based upon role membership.

Class

UserRoleLayoutAccess
@file Plugin to provide access control based upon role membership.

Code

function __construct($plugin_name, array $data = array()) {
  parent::__construct($plugin_name, $data);
  $this->settings += array(
    'roles' => array(),
  );
}