Commit bbbad362 authored by jrockowitz's avatar jrockowitz

Revert "Issue #2865189 by alex_optim: Deprecated method entityManager"

This reverts commit 9e726b8e.
parent 9e726b8e
......@@ -173,7 +173,7 @@ class BlockFieldItem extends FieldItemBase implements BlockFieldItemInterface {
// Don't return broken block content instances.
if ($plugin_definition['id'] == 'block_content') {
$uuid = $block_instance->getDerivativeId();
if (!\Drupal::entityTypeManager()->loadEntityByUuid('block_content', $uuid)) {
if (!\Drupal::entityManager()->loadEntityByUuid('block_content', $uuid)) {
return NULL;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment