Skip to content
Snippets Groups Projects
Commit ef00e241 authored by Bojan Zivanovic's avatar Bojan Zivanovic
Browse files

Add missing use statement, fix calculateDependencies().

parent 392b69b1
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ use Drupal\Core\Form\FormStateInterface; ...@@ -13,6 +13,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageManagerInterface; use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\views\Entity\Render\EntityTranslationRenderTrait; use Drupal\views\Entity\Render\EntityTranslationRenderTrait;
use Drupal\views\ResultRow; use Drupal\views\ResultRow;
use Drupal\views\Plugin\views\field\FieldPluginBase;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
/** /**
...@@ -196,7 +197,7 @@ class RenderedEntity extends FieldPluginBase implements CacheableDependencyInter ...@@ -196,7 +197,7 @@ class RenderedEntity extends FieldPluginBase implements CacheableDependencyInter
$view_mode = $this->entityManager $view_mode = $this->entityManager
->getStorage('entity_view_mode') ->getStorage('entity_view_mode')
->load($this->entityTypeId . '.' . $this->options['view_mode']); ->load($this->getEntityTypeId() . '.' . $this->options['view_mode']);
if ($view_mode) { if ($view_mode) {
$dependencies[$view_mode->getConfigDependencyKey()][] = $view_mode->getConfigDependencyName(); $dependencies[$view_mode->getConfigDependencyKey()][] = $view_mode->getConfigDependencyName();
} }
......
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