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

Settings form for configuring this access item.

Overrides LayoutAccess::form

File

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

Class

LayoutAccessBroken
A class to be used for contexts whose handler cannot be found.

Code

function form(&$form, &$form_state) {
  $info = layout_get_access_info($this->plugin);
  $class = isset($info['class']) ? $info['class'] : t('Unknown');
  $form['error'] = array(
    '#markup' => t('The class "@class" for the "@plugin" plugin could not be found.', array('@class' => $class, '@plugin' => $this->plugin)),
  );
}