You are here

public function Title::buildOptionsForm in Views (for Drupal 7) 8.3

Overrides Drupal\views\Plugin\views\AreaPluginBase::buildOptionsForm().

Overrides AreaPluginBase::buildOptionsForm

File

lib/Drupal/views/Plugin/views/area/Title.php, line 36
Definition of Drupal\views\Plugin\views\area\Title.

Class

Title
Views area title override handler.

Namespace

Drupal\views\Plugin\views\area

Code

public function buildOptionsForm(&$form, &$form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['title'] = array(
    '#type' => 'textfield',
    '#title' => t('Overridden title'),
    '#default_value' => $this->options['title'],
    '#description' => t('Override the title of this view when it is empty.'),
  );
}