BookExport::__construct

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;
}
doc_Drupal
2016-10-29 08:48:05
Comments
Leave a Comment

Please login to continue.