Edit's plugin interface is still called EditPluginInterface. That's utterly unhelpful/vague. It's named like that because it was introduced back in the day when Edit still used Create.js, and we all decided that it wasn't a good idea to call it CreateJSWidgetPluginInterface, also because these plugins would be the missing link between Edit and Create.js: they'd contain the glue.

So, now that Edit is stable, it is high time to give it its final name.

Finally, it has become customary AFAICT to have the plugin interface, the plugin base class (if any) and the plugin manager all live in the lib\Drupal\<modulename>\Plugin directory. Edit already does the latter, but the former two things it does not yet do.

This should be done after #2144879: Brush up MetadataGeneratorInterface::generate(Field|Entity)(): use FieldItemListInterface + better naming lands.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers’s picture

Status: Active » Postponed
FileSize
7.74 KB
Wim Leers’s picture

Status: Postponed » Needs review
FileSize
6.56 KB
jessebeach’s picture

This patch contains the following Class renames.

  1. +++ b/core/modules/edit/lib/Drupal/edit/Plugin/InPlaceEditorBase.php
    @@ -2,19 +2,18 @@
    - * Contains \Drupal\edit\EditorBase.
    + * Contains \Drupal\edit\Plugin\InPlaceEditorBase.
    
  2. +++ b/core/modules/edit/lib/Drupal/edit/Plugin/InPlaceEditorInterface.php
    @@ -2,10 +2,10 @@
    - * Contains \Drupal\edit\EditPluginInterface.
    + * Contains \Drupal\edit\Plugin\InPlaceEditorInterface.
    
  3. +++ b/core/modules/editor/lib/Drupal/editor/Plugin/EditorPluginInterface.php
    @@ -2,7 +2,7 @@
    - * Contains \Drupal\editor\Plugin\EditPluginInterface.
    + * Contains \Drupal\editor\Plugin\EditorPluginInterface.
    
jessebeach’s picture

Status: Needs review » Reviewed & tested by the community

Manual testing reveals no regressions.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Wim Leers’s picture

Issue tags: -sprint

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.