Mercurial > hg > cmmr2012-drupal-site
diff core/modules/book/src/BookExport.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/book/src/BookExport.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/book/src/BookExport.php Thu May 09 15:34:47 2019 +0100 @@ -2,7 +2,7 @@ namespace Drupal\book; -use Drupal\Core\Entity\EntityManagerInterface; +use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\node\NodeInterface; /** @@ -36,14 +36,14 @@ /** * Constructs a BookExport object. * - * @param \Drupal\Core\Entity\EntityManagerInterface $entityManager - * The entity manager. + * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager + * The entity type manager. * @param \Drupal\book\BookManagerInterface $book_manager * The book manager. */ - public function __construct(EntityManagerInterface $entityManager, BookManagerInterface $book_manager) { - $this->nodeStorage = $entityManager->getStorage('node'); - $this->viewBuilder = $entityManager->getViewBuilder('node'); + public function __construct(EntityTypeManagerInterface $entity_type_manager, BookManagerInterface $book_manager) { + $this->nodeStorage = $entity_type_manager->getStorage('node'); + $this->viewBuilder = $entity_type_manager->getViewBuilder('node'); $this->bookManager = $book_manager; }