.../modules/edit/lib/Drupal/edit/EditorInterface.php | 2 +- core/modules/edit/lib/Drupal/edit/EditorSelector.php | 2 +- .../edit/lib/Drupal/edit/EditorSelectorInterface.php | 18 ++---------------- .../lib/Drupal/edit/MetadataGeneratorInterface.php | 4 +--- 4 files changed, 5 insertions(+), 21 deletions(-) diff --git a/core/modules/edit/lib/Drupal/edit/EditorInterface.php b/core/modules/edit/lib/Drupal/edit/EditorInterface.php index 904810b..251233a 100644 --- a/core/modules/edit/lib/Drupal/edit/EditorInterface.php +++ b/core/modules/edit/lib/Drupal/edit/EditorInterface.php @@ -11,7 +11,7 @@ use Drupal\field\FieldInstance; /** - * Defines an interface for Create.js PropertyEditor widgets. + * Defines an interface for in-place editors (Create.js PropertyEditor widgets). * * A PropertyEditor widget is a user-facing interface to edit an entity property * through Create.js. diff --git a/core/modules/edit/lib/Drupal/edit/EditorSelector.php b/core/modules/edit/lib/Drupal/edit/EditorSelector.php index 8b09e80..131eea2 100644 --- a/core/modules/edit/lib/Drupal/edit/EditorSelector.php +++ b/core/modules/edit/lib/Drupal/edit/EditorSelector.php @@ -12,7 +12,7 @@ use Drupal\field\FieldInstance; /** - * Selects an in-place editor for a given entity field. + * Selects an in-place editor (an Editor plugin) for a field. */ class EditorSelector implements EditorSelectorInterface { diff --git a/core/modules/edit/lib/Drupal/edit/EditorSelectorInterface.php b/core/modules/edit/lib/Drupal/edit/EditorSelectorInterface.php index ed7e2c8..2c180cd 100644 --- a/core/modules/edit/lib/Drupal/edit/EditorSelectorInterface.php +++ b/core/modules/edit/lib/Drupal/edit/EditorSelectorInterface.php @@ -10,26 +10,12 @@ use Drupal\field\FieldInstance; /** - * Interface for selecting an in-place editor for a given entity field. + * Interface for selecting an in-place editor (an Editor plugin) for a field. */ interface EditorSelectorInterface { /** - * Returns the in-place editor to use for a given field instance. - * - * The Edit module includes three in-place 'editors' that integrate with the - * Create.js framework: - * - direct: A minimal wrapper to simply setting the HTML5 contenteditable - * attribute on the DOM element. - * - direct-with-wysiwyg: Binds a complete WYSIWYG editor (such as Aloha) to - * the DOM element. - * - form: Fetches a simplified version of the field's edit form (widget) and - * overlays that over the DOM element. - * - * These three editors are registered in js/createjs/editable.js. Modules may - * register additional editors via the Create.js API. - * - * This function returns the editor to use for a given field instance. + * Returns the in-place editor (an Editor plugin) to use for a field. * * @param string $formatter_type * The field's formatter type name. diff --git a/core/modules/edit/lib/Drupal/edit/MetadataGeneratorInterface.php b/core/modules/edit/lib/Drupal/edit/MetadataGeneratorInterface.php index ff052d7..2b6b1d8 100644 --- a/core/modules/edit/lib/Drupal/edit/MetadataGeneratorInterface.php +++ b/core/modules/edit/lib/Drupal/edit/MetadataGeneratorInterface.php @@ -32,9 +32,7 @@ * - access: whether the current user may edit the field or not. * - editor: which editor should be used for the field. * - aria: the ARIA label. - * - format: (optional) the text format ID of the field. - * - formatHasTransformations: (optional) whether the text format uses any - * transformation filters or not. + * - custom: (optional) any additional metadata that the editor provides. */ public function generate(EntityInterface $entity, FieldInstance $instance, $langcode, $view_mode);