You are here

public function TextCustom::buildOptionsForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/area/TextCustom.php \Drupal\views\Plugin\views\area\TextCustom::buildOptionsForm()

Provide a form to edit options for this plugin.

Overrides TokenizeAreaPluginBase::buildOptionsForm

File

core/modules/views/src/Plugin/views/area/TextCustom.php, line 33
Contains \Drupal\views\Plugin\views\area\TextCustom.

Class

TextCustom
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'] = array(
    '#title' => $this
      ->t('Content'),
    '#type' => 'textarea',
    '#default_value' => $this->options['content'],
    '#rows' => 6,
  );
}