Mercurial > hg > cmmr2012-drupal-site
diff core/modules/views/src/EventSubscriber/RouteSubscriber.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/views/src/EventSubscriber/RouteSubscriber.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/views/src/EventSubscriber/RouteSubscriber.php Thu May 09 15:34:47 2019 +0100 @@ -2,7 +2,7 @@ namespace Drupal\views\EventSubscriber; -use Drupal\Core\Entity\EntityManagerInterface; +use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\State\StateInterface; use Drupal\Core\Routing\RouteSubscriberBase; use Drupal\Core\Routing\RoutingEvents; @@ -54,13 +54,13 @@ /** * Constructs a \Drupal\views\EventSubscriber\RouteSubscriber instance. * - * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager - * The entity manager. + * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager + * The entity type manager service. * @param \Drupal\Core\State\StateInterface $state * The state key value store. */ - public function __construct(EntityManagerInterface $entity_manager, StateInterface $state) { - $this->viewStorage = $entity_manager->getStorage('view'); + public function __construct(EntityTypeManagerInterface $entity_type_manager, StateInterface $state) { + $this->viewStorage = $entity_type_manager->getStorage('view'); $this->state = $state; }