You are here

public function BookExport::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/book/src/BookExport.php \Drupal\book\BookExport::__construct()

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 49
Contains \Drupal\book\BookExport.

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;
}