Commit 9e726b8e authored by alex_optim's avatar alex_optim Committed by jrockowitz

Issue #2865189 by alex_optim: Deprecated method entityManager

parent 758b2890
......@@ -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::entityManager()->loadEntityByUuid('block_content', $uuid)) {
if (!\Drupal::entityTypeManager()->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