core/lib/Drupal/Core/Entity/EntityViewBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/Entity/EntityViewBuilder.php b/core/lib/Drupal/Core/Entity/EntityViewBuilder.php index 2c21668..af5abe0 100644 --- a/core/lib/Drupal/Core/Entity/EntityViewBuilder.php +++ b/core/lib/Drupal/Core/Entity/EntityViewBuilder.php @@ -189,7 +189,7 @@ protected function getBuildDefaults(EntityInterface $entity, $view_mode, $langco 'bin' => $this->cacheBin, ); - if ($entity instanceof TranslatableInterface && $entity->isTranslatable()) { + if ($entity instanceof TranslatableInterface && count($entity->getTranslationLanguages()) > 1) { $build['#cache']['keys'][] = $langcode; } }