1 user_permission_layout_access.inc UserPermissionLayoutAccess::__construct($plugin_name, array $data = array())

Constructor for a Layout access rule.

Overrides LayoutAccess::__construct

File

core/modules/layout/plugins/access/user_permission_layout_access.inc, line 10
Plugin to provide access control based on user permission strings.

Class

UserPermissionLayoutAccess
@file Plugin to provide access control based on user permission strings.

Code

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