diff -u b/core/modules/comment/comment.module b/core/modules/comment/comment.module --- b/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -633,7 +633,7 @@ /** * Implements hook_node_view_alter(). */ -function comment_node_view_alter(&$build, \Drupal\Core\Entity\EntityInterface $node, \Drupal\entity\Entity\EntityDisplay $display) { +function comment_node_view_alter(&$build, EntityInterface $node, EntityDisplay $display) { if (module_exists('history')) { $build['#attributes']['data-history-node-id'] = $node->id(); } diff -u b/core/modules/history/lib/Drupal/history/Controller/HistoryController.php b/core/modules/history/lib/Drupal/history/Controller/HistoryController.php --- b/core/modules/history/lib/Drupal/history/Controller/HistoryController.php +++ b/core/modules/history/lib/Drupal/history/Controller/HistoryController.php @@ -7,7 +7,6 @@ namespace Drupal\history\Controller; -use Drupal\Core\Controller\ControllerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\JsonResponse; @@ -18,14 +17,7 @@ /** * Returns responses for History module routes. */ -class HistoryController implements ControllerInterface { - - /** - * {@inheritdoc} - */ - public static function create(ContainerInterface $container) { - return new static(); - } +class HistoryController { /** * Returns a set of nodes' last read timestamps.