diff --git a/src/Plugin/views/field/RenderedEntity.php b/src/Plugin/views/field/RenderedEntity.php index 27f99462a8b5075b2fdf0775cfb3b5563af0d75a..1f8f9a26568cf11fa74ac48bc07a8465672b461d 100644 --- a/src/Plugin/views/field/RenderedEntity.php +++ b/src/Plugin/views/field/RenderedEntity.php @@ -13,6 +13,7 @@ use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Language\LanguageManagerInterface; use Drupal\views\Entity\Render\EntityTranslationRenderTrait; use Drupal\views\ResultRow; +use Drupal\views\Plugin\views\field\FieldPluginBase; use Symfony\Component\DependencyInjection\ContainerInterface; /** @@ -196,7 +197,7 @@ class RenderedEntity extends FieldPluginBase implements CacheableDependencyInter $view_mode = $this->entityManager ->getStorage('entity_view_mode') - ->load($this->entityTypeId . '.' . $this->options['view_mode']); + ->load($this->getEntityTypeId() . '.' . $this->options['view_mode']); if ($view_mode) { $dependencies[$view_mode->getConfigDependencyKey()][] = $view_mode->getConfigDependencyName(); }