function TRexEditor::buildConfigurationForm

Overrides EditorBase::buildConfigurationForm

File

core/modules/editor/tests/modules/editor_test/src/Plugin/Editor/TRexEditor.php, line 35

Class

TRexEditor
Defines a Tyrannosaurus-Rex powered text editor for testing purposes.

Namespace

Drupal\editor_test\Plugin\Editor

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $form['stumpy_arms'] = [
    '#title' => $this->t('Stumpy arms'),
    '#type' => 'checkbox',
    '#default_value' => TRUE,
  ];
  return $form;
}

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