You are here

class FlexiformDisplayAddPane in Flexiform 7

Class for add panel panes.

Hierarchy

Expanded class hierarchy of FlexiformDisplayAddPane

3 string references to 'FlexiformDisplayAddPane'
flexiform_add_pane_content_type_content_type in plugins/content_types/add_pane.inc
Get one sub type of this flexiform edit pane.
flexiform_add_pane_content_type_content_types in plugins/content_types/add_pane.inc
Return all flexiform edit pane sub types
flexiform_update_7011 in ./flexiform.install
Switch to keying displays by class name.

File

includes/display/add_pane.display.inc, line 10
Define Display plugin for the add panels pane.

View source
class FlexiformDisplayAddPane extends FlexiformDisplayBase {

  /**
   * {@inheritdoc}
   */
  public function configForm($form, &$form_state) {
    $form = parent::configForm($form, $form_state);
    $form['access'] = array(
      '#type' => 'fieldset',
      '#title' => t('Access'),
      '#tree' => TRUE,
      '#description' => t('Advanced Access Settings'),
      '#collapsible' => TRUE,
      '#collapsed' => TRUE,
    );
    $form['access']['bypass'] = array(
      '#type' => 'checkbox',
      '#title' => t('By-pass Flexiform Access'),
      '#description' => t('By-pass Flexiform Access settings. This can be useful if you would prefer to use panels visibility rules to control access to this form.'),
      '#default_value' => !empty($this->configuration['access']['bypass']),
    );
    return $form;
  }

  /**
   * {@inheritdoc}
   */
  public function access($context = array()) {
    return !empty($this->configuration['access']['bypass']) || parent::access($context);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FlexiformDisplayAddPane::access public function Check the access for this form display. Overrides FlexiformDisplayBase::access
FlexiformDisplayAddPane::configForm public function Build the config form. Overrides FlexiformDisplayBase::configForm
FlexiformDisplayBase::$flexiform protected property The Flexiform the display is for.
FlexiformDisplayBase::build public function Build the form ready for rendering. Overrides FlexiformDisplayInterface::build 2
FlexiformDisplayBase::getBaseEntity public function Get the base entity for a flexiform. Overrides FlexiformDisplayInterface::getBaseEntity 4
FlexiformDisplayBase::getFlexiform public function Retrieve the flexiform for this display. Overrides FlexiformDisplayInterface::getFlexiform
FlexiformDisplayBase::getPath public function Get the path, if applicable, for the display. Overrides FlexiformDisplayInterface::getPath 1
FlexiformDisplayBase::isEnabled public function Is this display enabled. 1
FlexiformDisplayBase::title public function Get the title. Overrides FlexiformDisplayInterface::title 1
FlexiformDisplayBase::__construct public function