class FlexiformDisplayAddPane in Flexiform 7
Class for add panel panes.
Hierarchy
- class \FlexiformDisplayBase implements FlexiformDisplayInterface
- class \FlexiformDisplayAddPane
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);
}
}