EntityManager has been split into 11 classes. So now EntityManager and EntityManagerInterface are deprecated.

Comments

Pavan B S created an issue. See original summary.

Pavan B S’s picture

Assigned: Pavan B S » Unassigned
Status: Active » Needs review
StatusFileSize
new12.65 KB

Applying the patch, please review.

socialnicheguru’s picture

I get this error once I apply the patch
then try to place the block

Error: Call to undefined method Drupal\\Core\\Entity\\EntityTypeManager::getFieldStorageDefinitions() in drupal-8.4.5/html/modules/download/fieldblock/src/Plugin/Block/FieldBlock.php on line 108

sutharsan’s picture

Status: Needs review » Needs work

Back to 'Needs work' as per remark in #3.

nkoporec’s picture

Status: Needs work » Needs review
StatusFileSize
new13.27 KB
new3.59 KB

Created a new patch which fixes #3 issue.

sutharsan’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

Thanks for working on this. However the patch no longer applies.

+++ b/src/BlockEntityStorage.php
@@ -53,16 +53,16 @@ class BlockEntityStorage extends ConfigEntityStorage {
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
    *   The entity manager.

The descriptions should be modified too.

FieldBlock::getEntity also has an $this->entityManager, I think this is missing in the patch.

sutharsan’s picture

Issue tags: -Needs reroll
StatusFileSize
new12.88 KB

Rerolled

sutharsan’s picture

Status: Needs work » Needs review
StatusFileSize
new14.24 KB
new7.58 KB

Changes:

  • Changed descriptions as commented in #6
  • Added missing entityTypeManger in FieldBlock
  • Changed entity_*_manger variables to lowerCamelCase.

  • Sutharsan committed 39a57c4 on 8.x-2.x
    Issue #2864259 by Sutharsan, nkoporec, Pavan B S: Replace all usages of...
sutharsan’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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