Remove EditorEntity aliasing in core/modules/ckeditor/src/Plugin/Editor/CKEditor.php

use Drupal\editor\Entity\Editor as EditorEntity;

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

heykarthikwithu created an issue. See original summary.

heykarthikwithu’s picture

Assigned: heykarthikwithu » Unassigned
Status: Active » Needs review
FileSize
2.33 KB
naveenvalecha’s picture

Status: Needs review » Reviewed & tested by the community

This makes sense to in. RTBC if green
Thanks!

#2641528: Replace deprecated usage of entity_create('editor') with a direct call to Editor::create() would needs reroll when this issue went in.

Wim Leers’s picture

Category: Bug report » Task
Priority: Normal » Minor
Issue tags: +Quickfix

Hah!

Note that #1992744: Add a dedicated @Editor plugin annotation introduced this, because we used to also have this:

use Drupal\editor\Annotation\Editor;

But for a long time, the need to import those classes has not been necessary anymore. So we can indeed also remove this.

It feels nice to be able to remove this oddity. Thank you, much appreciated!

Wim Leers’s picture

heykarthikwithu’s picture

Assigned: Unassigned » heykarthikwithu

working on this.

Wim Leers’s picture

Thanks!

heykarthikwithu’s picture

Assigned: heykarthikwithu » Unassigned
Status: Needs work » Needs review
FileSize
5.49 KB
2.86 KB
Wim Leers’s picture

Status: Needs review » Reviewed & tested by the community

Thanks!

naveenvalecha’s picture

Yay!
RTBC +1
This needs a better title now

heykarthikwithu’s picture

Title: Remove EditorEntity aliasing in core/modules/ckeditor/src/Plugin/Editor/CKEditor.php » Remove EditorEntity aliasing in core/modules/*
Wim Leers’s picture

Title: Remove EditorEntity aliasing in core/modules/* » Remove EditorEntity aliasing in editor & ckeditor modules
naveenvalecha’s picture

Title: Remove EditorEntity aliasing in editor & ckeditor modules » Remove EditorEntity aliasing in editor & ckeditor module

  • catch committed a67f54c on 8.1.x
    Issue #2668828 by heykarthikwithu, naveenvalecha: Remove EditorEntity...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.1.x, thanks!

Status: Fixed » Closed (fixed)

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