Skip to content
Snippets Groups Projects
Commit 7d89db37 authored by Tassilo Groeper's avatar Tassilo Groeper Committed by Adam Bramley
Browse files

Issue #2865189 by tassilogroeper: Deprecated method entityManager

parent 9e726b8e
No related branches found
Tags 8.x-1.0-alpha5
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment