public function BookExport::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/book/src/BookExport.php \Drupal\book\BookExport::__construct()
Constructs a BookExport object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type 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\bookCode
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;
}