Loading src/Plugin/EntityBrowser/FieldWidgetDisplay/RenderedEntity.php +6 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,12 @@ class RenderedEntity extends FieldWidgetDisplayBase implements ContainerFactoryP ->view($entity, $this->configuration['view_mode']); $build['#entity_browser_suppress_contextual'] = TRUE; // If the entity is render cached, add another cache key to differentiate // it from other places using the same view mode. if (!empty($build['#cache']['keys'])) { $build['#cache']['keys'][] = 'entity_browser'; } return $build; } Loading Loading
src/Plugin/EntityBrowser/FieldWidgetDisplay/RenderedEntity.php +6 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,12 @@ class RenderedEntity extends FieldWidgetDisplayBase implements ContainerFactoryP ->view($entity, $this->configuration['view_mode']); $build['#entity_browser_suppress_contextual'] = TRUE; // If the entity is render cached, add another cache key to differentiate // it from other places using the same view mode. if (!empty($build['#cache']['keys'])) { $build['#cache']['keys'][] = 'entity_browser'; } return $build; } Loading