function BookController::create

Same name in other branches
  1. 9 core/modules/book/src/Controller/BookController.php \Drupal\book\Controller\BookController::create()

Overrides ControllerBase::create

File

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

Class

BookController
Controller routines for book routes.

Namespace

Drupal\book\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('book.manager'), $container->get('book.export'), $container->get('renderer'));
}

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