1 layout_access.inc LayoutAccessNegatable::form(&$form, &$form_state)

Settings form for configuring this access item.

Overrides LayoutAccess::form

File

core/modules/layout/plugins/access/layout_access.inc, line 155
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 form(&$form, &$form_state) {
  parent::form($form, $form_state);
  $form['negate'] = array(
    '#type' => 'checkbox',
    '#title' => t('Reverse (NOT)'),
    '#weight' => 100,
    '#default_value' => $this->settings['negate'],
  );
}