function EditorPluginInterface::settingsForm

Returns a settings form to configure this text editor.

If the editor's behavior depends on extensive options and/or external data, then the implementing module can choose to provide a separate, global configuration page rather than per-text-format settings. In that case, this form should provide a link to the separate settings page.

Parameters

array $form: An empty form array to be populated with a configuration form, if any.

array $form_state: The state of the entire filter administration form.

\Drupal\editor\Plugin\Core\Entity\Editor $editor: A configured text editor object.

Return value

array A render array for the settings form.

1 method overrides EditorPluginInterface::settingsForm()
EditorBase::settingsForm in drupal/core/modules/editor/lib/Drupal/editor/Plugin/EditorBase.php
Implements \Drupal\editor\Plugin\EditPluginInterface::settingsForm().

File

drupal/core/modules/editor/lib/Drupal/editor/Plugin/EditorPluginInterface.php, line 49
Contains \Drupal\editor\Plugin\EditPluginInterface.

Class

EditorPluginInterface
Defines an interface for configurable text editors.

Namespace

Drupal\editor\Plugin

Code

function settingsForm(array $form, array &$form_state, Editor $editor);