public function AreaPluginBase::buildOptionsForm

Default options form that provides the label widget that all fields should have.

Overrides HandlerBase::buildOptionsForm

5 calls to AreaPluginBase::buildOptionsForm()
Result::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php
Default options form that provides the label widget that all fields should have.
TestExample::buildOptionsForm in drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/area/TestExample.php
Overrides Drupal\views\Plugin\views\area\AreaPluginBase::buildOptionsForm()
Title::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/Title.php
Overrides Drupal\views\Plugin\views\AreaPluginBase::buildOptionsForm().
TokenizeAreaPluginBase::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/TokenizeAreaPluginBase.php
Default options form that provides the label widget that all fields should have.
View::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/View.php
Default options form that provides the label widget that all fields should have.
6 methods override AreaPluginBase::buildOptionsForm()
Broken::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/Broken.php
Default options form that provides the label widget that all fields should have.
Result::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php
Default options form that provides the label widget that all fields should have.
TestExample::buildOptionsForm in drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/area/TestExample.php
Overrides Drupal\views\Plugin\views\area\AreaPluginBase::buildOptionsForm()
Title::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/Title.php
Overrides Drupal\views\Plugin\views\AreaPluginBase::buildOptionsForm().
TokenizeAreaPluginBase::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/TokenizeAreaPluginBase.php
Default options form that provides the label widget that all fields should have.

... See full list

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/AreaPluginBase.php, line 72
Definition of Drupal\views\Plugin\views\area\AreaPluginBase.

Class

AreaPluginBase
Base class for area handlers.

Namespace

Drupal\views\Plugin\views\area

Code

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