public function TextCustom::buildOptionsForm

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

Overrides AreaPluginBase::buildOptionsForm

File

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

Class

TextCustom
Views area text handler.

Namespace

Drupal\views\Plugin\views\area

Code

public function buildOptionsForm(&$form, &$form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['content'] = array(
    '#type' => 'textarea',
    '#default_value' => $this->options['content'],
    '#rows' => 6,
  );

  // Add tokenization form elements.
  $this
    ->tokenForm($form, $form_state);
}