You are here

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

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

Overrides Text::buildOptionsForm

File

lib/Drupal/views/Plugin/views/area/TextCustom.php, line 29
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);

  // Alter the form element, to be a regular text area.
  $form['content']['#type'] = 'textarea';
  unset($form['content']['#format']);
  unset($form['content']['#wysiwyg']);
}