function UnicornEditor::buildConfigurationForm
Same name in other branches
- 9 core/modules/editor/tests/modules/editor_test/src/Plugin/Editor/UnicornEditor.php \Drupal\editor_test\Plugin\Editor\UnicornEditor::buildConfigurationForm()
- 10 core/modules/editor/tests/modules/editor_test/src/Plugin/Editor/UnicornEditor.php \Drupal\editor_test\Plugin\Editor\UnicornEditor::buildConfigurationForm()
- 11.x core/modules/editor/tests/modules/editor_test/src/Plugin/Editor/UnicornEditor.php \Drupal\editor_test\Plugin\Editor\UnicornEditor::buildConfigurationForm()
Overrides EditorBase::buildConfigurationForm
File
-
core/
modules/ editor/ tests/ modules/ src/ Plugin/ Editor/ UnicornEditor.php, line 36
Class
- UnicornEditor
- Defines a Unicorn-powered text editor for Drupal (for testing purposes).
Namespace
Drupal\editor_test\Plugin\EditorCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form['ponies_too'] = [
'#title' => t('Pony mode'),
'#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.