public BookExport::__construct(EntityManagerInterface $entityManager, BookManagerInterface $book_manager)
Constructs a BookExport object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entityManager: The entity manager.
\Drupal\book\BookManagerInterface $book_manager: The book manager.
File
- core/modules/book/src/BookExport.php, line 44
Class
- BookExport
- Provides methods for exporting book to different formats.
Namespace
Drupal\book
Code
public function __construct(EntityManagerInterface $entityManager, BookManagerInterface $book_manager) { $this->nodeStorage = $entityManager->getStorage('node'); $this->viewBuilder = $entityManager->getViewBuilder('node'); $this->bookManager = $book_manager; }
Please login to continue.