You are here

public function FormatterTypeBase::settingsForm in Custom Formatters 8.3

3 calls to FormatterTypeBase::settingsForm()
HTMLToken::settingsForm in src/Plugin/CustomFormatters/FormatterType/HTMLToken.php
PHP::settingsForm in src/Plugin/CustomFormatters/FormatterType/PHP.php
Twig::settingsForm in src/Plugin/CustomFormatters/FormatterType/Twig.php
4 methods override FormatterTypeBase::settingsForm()
FormatterPreset::settingsForm in src/Plugin/CustomFormatters/FormatterType/FormatterPreset.php
HTMLToken::settingsForm in src/Plugin/CustomFormatters/FormatterType/HTMLToken.php
PHP::settingsForm in src/Plugin/CustomFormatters/FormatterType/PHP.php
Twig::settingsForm in src/Plugin/CustomFormatters/FormatterType/Twig.php

File

src/FormatterTypeBase.php, line 40

Class

FormatterTypeBase
Class FormatterTypeBase.

Namespace

Drupal\custom_formatters

Code

public function settingsForm(array &$form, FormStateInterface $form_state) {
  $form['data'] = [
    '#title' => $this
      ->t('Formatter'),
    '#type' => 'textarea',
    '#default_value' => $this->entity
      ->get('data'),
    '#required' => TRUE,
    '#rows' => 10,
  ];
  return $form;
}