Commit 7d89db37 authored by tassilogroeper's avatar tassilogroeper Committed by acbramley

Issue #2865189 by tassilogroeper: Deprecated method entityManager

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::service('entity.repository')->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