public function Text::buildOptionsForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/area/Text.php \Drupal\views\Plugin\views\area\Text::buildOptionsForm()
Provide a form to edit options for this plugin.
Overrides TokenizeAreaPluginBase::buildOptionsForm
File
- core/
modules/ views/ src/ Plugin/ views/ area/ Text.php, line 38 - Contains \Drupal\views\Plugin\views\area\Text.
Class
- Text
- Views area text handler.
Namespace
Drupal\views\Plugin\views\areaCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['content'] = array(
'#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,
);
}