Updated: Comment #0

Problem/Motivation

After #2057869: Provide an alias for 'plugin.manager.entity' called 'entity.manager' we have entity.manager as an alias of plugin.manager.entity. #2078847: Clean-up the rest of 'plugin.manager.entity' to 'entity.manager' also tried to replace the service name but due to #2003482: Convert hook_search_info to plugin system we have some more uses of plugin.manager.entity. This is turning in to DrupalWTF. I think contrib can handle this change at this point.
I have reopened #2078847: Clean-up the rest of 'plugin.manager.entity' to 'entity.manager' for clean up.

Proposed resolution

Remove plugin.manager.entity

Remaining tasks

Core committer feedback.
Create patch.

User interface changes

None

API changes

plugin.manager.entity service in replaced by entity.manager

Comments

damiankloip’s picture

Every other plugin follows the plugin.manager.* format, so I don't think removing it makes sense.

andypost’s picture

Component: shortcut.module » plugin system

Maybe just and some docs about suggested service name to use somewhere?

yched’s picture

I don't want to seem like an old record, but entity types are not plugins :-)
So +1 on this.

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new5.45 KB

There we go.

Status: Needs review » Needs work

The last submitted patch, entity_manager-2084279-4.patch, failed testing.

andypost’s picture

Status: Needs work » Needs review
StatusFileSize
new6.09 KB
new653 bytes

forum was lost

andypost’s picture

StatusFileSize
new6.05 KB
new1.06 KB
+++ b/core/modules/aggregator/lib/Drupal/aggregator/Form/AggregatorCategorizeFormBase.php
@@ -79,11 +79,12 @@ public function __construct(EntityRenderControllerInterface $aggregator_item_ren
   public static function create(ContainerInterface $container) {
+    $entity_manager = $container->get('entity.manager');
...
-      $container->get('plugin.manager.entity')->getRenderController('aggregator_item'),
+      $entity_manager->getRenderController('aggregator_item'),
...
-      $container->get('plugin.manager.entity')->getStorageController('aggregator_item')
+      $entity_manager->getStorageController('aggregator_item')

This change unnesesary

Status: Needs review » Needs work
Issue tags: -DrupalWTF, -Needs committer feedback

The last submitted patch, entity_manager-2084279-7.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review

#7: entity_manager-2084279-7.patch queued for re-testing.

jibran’s picture

#7: entity_manager-2084279-7.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +DrupalWTF, +Needs committer feedback

The last submitted patch, entity_manager-2084279-7.patch, failed testing.

dawehner’s picture

Issue tags: +Novice, +Needs reroll

Rerolling this should be pretty easy.

David Hernández’s picture

Status: Needs work » Needs review
StatusFileSize
new5.98 KB

Re-rolled

Status: Needs review » Needs work

The last submitted patch, entity_manager-2084279-13.patch, failed testing.

herom’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new2.35 KB
new8.88 KB

replace some new cases.

jibran’s picture

Status: Needs review » Needs work

The last submitted patch, 15: entity_manager-2084279-15.patch, failed testing.

herom’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new9.47 KB
new624 bytes

reroll + update.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Perfect! I could not find any other usage of the service.

xano’s picture

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 18: entity_manager-2084279-18.patch, failed testing.

xano’s picture

Status: Needs work » Needs review
StatusFileSize
new9.24 KB

Re-roll.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Re-RTBC

berdir’s picture

22: drupal_2084279_22.patch queued for re-testing.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 22: drupal_2084279_22.patch, failed testing.

herom’s picture

Status: Needs work » Needs review
StatusFileSize
new9.25 KB

rerolled

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

It is green!

yched’s picture

Issue tags: +Avoid commit conflicts

OK, let's add that tag and get this sucker in :-)

(not sure why this has the "Needs committer feedback" though ?)

catch’s picture

Title: Remove plugin.manager.entity service in favor of entity.manager » Change notice: Remove plugin.manager.entity service in favor of entity.manager
Priority: Normal » Major
Status: Reviewed & tested by the community » Active
Issue tags: -Needs committer feedback, -Avoid commit conflicts +Needs change notifcation

Committed/pushed to 8.x, needs short change notice. We should have done this in the first place (rip the old manager out) since it's very confusing having a duplicate service.

xjm’s picture

Issue tags: -Needs change notifcation +Needs change record

spelling++

star-szr’s picture

Issue tags: +DrupalWorkParty
dawehner’s picture

joachim’s picture

I think that's a link to this issue rather than to a change record!

dawehner’s picture

Oh I am sorry I was quite sure when I went to the other issue that jibran linked to the issue as a change notice. Sorry.

yesct’s picture

Issue tags: +Needs change record

adding change record tag back.

star-szr’s picture

Status: Fixed » Active

And active.

lexfunk’s picture

Assigned: Unassigned » lexfunk

Assigning to myself to create change notice.

lexfunk’s picture

Title: Change notice: Remove plugin.manager.entity service in favor of entity.manager » Remove plugin.manager.entity service in favor of entity.manager
Assigned: lexfunk » Unassigned
Priority: Major » Normal
Status: Active » Fixed
Issue tags: -Needs change record

Created change notice: https://drupal.org/node/2181815

star-szr’s picture

Thanks @lexfunk!

Status: Fixed » Closed (fixed)

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