1 layout_access.inc | LayoutAccessNegatable::__construct($plugin_name, array $data = array()) |
Constructor for a Layout access rule.
Overrides LayoutAccess::__construct
File
- core/
modules/ layout/ plugins/ access/ layout_access.inc, line 144 - Class for loading, modifying, and saving a layout access rule (condition).
Class
- LayoutAccessNegatable
- A common base class used for access handlers that may be negated.
Code
function __construct($plugin_name, array $data = array()) {
parent::__construct($plugin_name, $data);
// Ensure a setting always exists for negation.
$this->settings += array(
'negate' => FALSE,
);
}