You are here

public function AreaPluginBase::buildOptionsForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

6 calls to AreaPluginBase::buildOptionsForm()
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.
TokenizeAreaPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/area/TokenizeAreaPluginBase.php
Provide a form to edit options for this plugin.

... See full list

6 methods override AreaPluginBase::buildOptionsForm()
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.
TokenizeAreaPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/area/TokenizeAreaPluginBase.php
Provide a form to edit options for this plugin.

... See full list

File

core/modules/views/src/Plugin/views/area/AreaPluginBase.php, line 85
Contains \Drupal\views\Plugin\views\area\AreaPluginBase.

Class

AreaPluginBase
Base class for area handler plugins.

Namespace

Drupal\views\Plugin\views\area

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  if ($form_state
    ->get('type') != 'empty') {
    $form['empty'] = array(
      '#type' => 'checkbox',
      '#title' => $this
        ->t('Display even if view has no result'),
      '#default_value' => isset($this->options['empty']) ? $this->options['empty'] : 0,
    );
  }
}