From ef00e241ca3b985698d3cdf42eea445761f4e7de Mon Sep 17 00:00:00 2001
From: Bojan Zivanovic <bojanz@gmail.com>
Date: Wed, 23 Dec 2015 19:25:04 +0100
Subject: [PATCH] Add missing use statement, fix calculateDependencies().

---
 src/Plugin/views/field/RenderedEntity.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Plugin/views/field/RenderedEntity.php b/src/Plugin/views/field/RenderedEntity.php
index 27f9946..1f8f9a2 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();
     }
-- 
GitLab