entityManager deprecated method removed from Token Code base.
Find the patch which fixes it.

Comments

berdir’s picture

Status: Needs review » Needs work
+++ b/token.tokens.inc
@@ -1162,7 +1162,7 @@ function field_token_info_alter(&$info) {
       continue;
     }
 
-    $fields = \Drupal::entityManager()->getFieldStorageDefinitions($entity_type_id);
+    $fields = \Drupal::entityTypeManager()->getFieldStorageDefinitions($entity_type_id);

This method is not provided by entity type manager but entity field manager.

hussainweb’s picture

Status: Needs work » Needs review
StatusFileSize
new6.26 KB

I don't think tests ran earlier. I am uploading the same patch to get it to run tests (I can't see the 'Add test' button either). This is mainly to confirm that it should fail for the reason mentioned in #2.

Status: Needs review » Needs work

The last submitted patch, 3: token_deprecated.patch, failed testing.

The last submitted patch, 3: token_deprecated.patch, failed testing.

hussainweb’s picture

Status: Needs work » Needs review
StatusFileSize
new679 bytes
new6.14 KB

Fixing as per #2.

berdir’s picture

Status: Needs review » Fixed

Yeah, that happens sometimes with patches. Yay tests failing as they should++.

Committed.

  • Berdir committed 49827c6 on 8.x-1.x authored by hussainweb
    Issue #2693005 by hussainweb, pashupathi nath gajawada: entityManager...

Status: Fixed » Closed (fixed)

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