1 entity_bundle_layout_access.inc | EntityBundleLayoutAccess::__construct($plugin_name, array $data = array()) |
Constructor for a Layout access rule.
Overrides LayoutAccess::__construct
File
- core/
modules/ layout/ plugins/ access/ entity_bundle_layout_access.inc, line 16 - Plugin to provide access control based upon entity bundle.
Class
- EntityBundleLayoutAccess
- @file Plugin to provide access control based upon entity bundle.
Code
function __construct($plugin_name, array $data = array()) {
parent::__construct($plugin_name, $data);
$this->settings += array(
'bundles' => array()
);
// Set entity type.
$info = layout_get_access_info($plugin_name);
$this->entity_type = $info['entity_type'];
}