core/lib/Drupal/Core/Entity/EntityViewBuilder.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/lib/Drupal/Core/Entity/EntityViewBuilder.php b/core/lib/Drupal/Core/Entity/EntityViewBuilder.php index e7d13a4..7d9365a 100644 --- a/core/lib/Drupal/Core/Entity/EntityViewBuilder.php +++ b/core/lib/Drupal/Core/Entity/EntityViewBuilder.php @@ -171,7 +171,6 @@ protected function getBuildDefaults(EntityInterface $entity, $view_mode, $langco 'tags' => Cache::mergeTags($this->getCacheTags(), $entity->getCacheTags()), 'contexts' => [ 'theme', - 'user.roles', ], ), ); @@ -186,9 +185,6 @@ protected function getBuildDefaults(EntityInterface $entity, $view_mode, $langco $entity->id(), $view_mode, ), - 'contexts' => array( - 'theme', - ), 'bin' => $this->cacheBin, );