public function AreaPluginBase::buildOptionsForm in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/area/AreaPluginBase.php \Drupal\views\Plugin\views\area\AreaPluginBase::buildOptionsForm()
Provide a form to edit options for this plugin.
Overrides HandlerBase::buildOptionsForm
7 calls to AreaPluginBase::buildOptionsForm()
- DisplayLink::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ area/ DisplayLink.php - Provide a form to edit options for this plugin.
- HTTPStatusCode::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ area/ HTTPStatusCode.php - Provide a form to edit options for this plugin.
- Result::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ area/ Result.php - Provide a form to edit options for this plugin.
- TestExample::buildOptionsForm in core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ area/ TestExample.php - Provide a form to edit options for this plugin.
- Title::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ area/ Title.php - Provide a form to edit options for this plugin.
7 methods override AreaPluginBase::buildOptionsForm()
- DisplayLink::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ area/ DisplayLink.php - Provide a form to edit options for this plugin.
- HTTPStatusCode::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ area/ HTTPStatusCode.php - Provide a form to edit options for this plugin.
- Result::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ area/ Result.php - Provide a form to edit options for this plugin.
- TestExample::buildOptionsForm in core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ area/ TestExample.php - Provide a form to edit options for this plugin.
- Title::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ area/ Title.php - Provide a form to edit options for this plugin.
File
- core/
modules/ views/ src/ Plugin/ views/ area/ AreaPluginBase.php, line 80
Class
- AreaPluginBase
- Base class for area handler plugins.
Namespace
Drupal\views\Plugin\views\areaCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
if ($form_state
->get('type') != 'empty') {
$form['empty'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Display even if view has no result'),
'#default_value' => isset($this->options['empty']) ? $this->options['empty'] : 0,
];
}
}