diff --git a/core/modules/node/src/NodeViewBuilder.php b/core/modules/node/src/NodeViewBuilder.php index cfdddee..696b822 100644 --- a/core/modules/node/src/NodeViewBuilder.php +++ b/core/modules/node/src/NodeViewBuilder.php @@ -170,7 +170,7 @@ protected static function buildLinks(NodeInterface $entity, $view_mode) { protected function alterBuild(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode, $langcode = NULL) { /** @var \Drupal\node\NodeInterface $entity */ parent::alterBuild($build, $entity, $display, $view_mode, $langcode); - $revision = entity_load($entity->getEntityTypeId(),$entity->id()) + $revision = entity_load($entity->getEntityTypeId(),$entity->id()); if ($entity->id() && ContentEntityBase::isDefaultRevision($revision)==TRUE) { $build['#contextual_links']['node'] = array( 'route_parameters' =>array('node' => $entity->id()),