core/modules/shortcut/src/Entity/Shortcut.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/core/modules/shortcut/src/Entity/Shortcut.php b/core/modules/shortcut/src/Entity/Shortcut.php index d9c1496..5807c66 100644 --- a/core/modules/shortcut/src/Entity/Shortcut.php +++ b/core/modules/shortcut/src/Entity/Shortcut.php @@ -223,19 +223,14 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { * {@inheritdoc} */ public function getCacheTag() { - $field_value = $this->get('shortcut_set') - ->getValue(TRUE); - $shortcut_set = $field_value[0]['entity']; - return $shortcut_set->getCacheTag(); + return $this->shortcut_set->entity->getCacheTag(); } /** * {@inheritdoc} */ public function getListCacheTags() { - $field_value = $this->get('shortcut_set')->getValue(TRUE); - $shortcut_set = $field_value[0]['entity']; - return $shortcut_set->getListCacheTags(); + return $this->shortcut_set->entity->getListCacheTags(); } }