function BookController::__construct

Same name in other branches
  1. 9 core/modules/book/src/Controller/BookController.php \Drupal\book\Controller\BookController::__construct()
  2. 8.9.x core/modules/book/src/Controller/BookController.php \Drupal\book\Controller\BookController::__construct()
  3. 11.x core/modules/book/src/Controller/BookController.php \Drupal\book\Controller\BookController::__construct()

Constructs a BookController object.

Parameters

\Drupal\book\BookManagerInterface $bookManager: The book manager.

\Drupal\book\BookExport $bookExport: The book export service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

File

core/modules/book/src/Controller/BookController.php, line 52

Class

BookController
Controller routines for book routes.

Namespace

Drupal\book\Controller

Code

public function __construct(BookManagerInterface $bookManager, BookExport $bookExport, RendererInterface $renderer) {
    $this->bookManager = $bookManager;
    $this->bookExport = $bookExport;
    $this->renderer = $renderer;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.