Now that the instance storage of the controllers has changed. We have alot of duplication. We can refactor this out to just call a generic getController method.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, d8-EntityManager-refactor.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review
FileSize
2.99 KB

How about we roll this against the current HEAD, not the one I'm expecting in the future.

Status: Needs review » Needs work

The last submitted patch, 2001012-2.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review
FileSize
796 bytes
2.45 KB

Forget about the list controller needing the storage controller injected.

dawehner’s picture

+++ b/core/lib/Drupal/Core/Entity/EntityManager.phpundefined
@@ -193,11 +185,26 @@ public function getRenderController($entity_type) {
+  protected function getController($entity_type, $controller_type) {

Just by random guess I would have expected to have the controller type as first parameter/

dawehner’s picture

Status: Needs review » Needs work

This certainly needs a full reroll, due to the injection issue.

damiankloip’s picture

Status: Needs work » Needs review
FileSize
3.41 KB

rerolled.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Great. Thank you!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2001012-7.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review

#7: 2001012-7.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 2001012-7.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review

#7: 2001012-7.patch queued for re-testing.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Status: Reviewed & tested by the community » Needs work

Needs a reroll...

curl https://drupal.org/files/2001012-7.patch | git a
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3493  100  3493    0     0   4035      0 --:--:-- --:--:-- --:--:--  5244
error: patch failed: core/lib/Drupal/Core/Entity/EntityManager.php:204
error: core/lib/Drupal/Core/Entity/EntityManager.php: patch does not apply
damiankloip’s picture

Status: Needs work » Needs review
FileSize
3.41 KB

Rerolled.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Another one!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 9dabd6d and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

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