function Text::buildOptionsForm

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/area/Text.php \Drupal\views\Plugin\views\area\Text::buildOptionsForm()
  2. 10 core/modules/views/src/Plugin/views/area/Text.php \Drupal\views\Plugin\views\area\Text::buildOptionsForm()
  3. 11.x core/modules/views/src/Plugin/views/area/Text.php \Drupal\views\Plugin\views\area\Text::buildOptionsForm()

Overrides TokenizeAreaPluginBase::buildOptionsForm

File

core/modules/views/src/Plugin/views/area/Text.php, line 33

Class

Text
Views area text handler.

Namespace

Drupal\views\Plugin\views\area

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    parent::buildOptionsForm($form, $form_state);
    $form['content'] = [
        '#title' => $this->t('Content'),
        '#type' => 'text_format',
        '#default_value' => $this->options['content']['value'],
        '#rows' => 6,
        '#format' => isset($this->options['content']['format']) ? $this->options['content']['format'] : filter_default_format(),
        '#editor' => FALSE,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.