1.20.x layout_access.inc LayoutAccess::__construct($plugin_name, array $data = array())

Constructor for a Layout access rule.

Overrides LayoutHandler::__construct

File

modules/layout/plugins/access/layout_access.inc, line 31
Class for loading, modifying, and saving a layout access rule (condition).

Class

LayoutAccess
@file Class for loading, modifying, and saving a layout access rule (condition).

Code

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