BookController::create

public static BookController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service c

BookController::bookRender

public BookController::bookRender() Prints a listing of all books. Return value array A render array representing the listing of all books content. File core/modules/book/src/Controller/BookController.php, line 116 Class BookController Controller routines for book routes. Namespace Drupal\book\Controller Code public function bookRender() { $book_list = array(); foreach ($this->bookManager->getAllBooks() as $book) { $book_list[] = $this->l($book['title'], $book['url'])

BookController::bookExport

public BookController::bookExport($type, NodeInterface $node) Generates representations of a book page and its children. The method delegates the generation of output to helper methods. The method name is derived by prepending 'bookExport' to the camelized form of given output type. For example, a type of 'html' results in a call to the method bookExportHtml(). Parameters string $type: A string encoding the type of output requested. The following types are currently supported in book module:

BookController::adminOverview

public BookController::adminOverview() Returns an administrative overview of all books. Return value array A render array representing the administrative page content. File core/modules/book/src/Controller/BookController.php, line 75 Class BookController Controller routines for book routes. Namespace Drupal\book\Controller Code public function adminOverview() { $rows = array(); $headers = array(t('Book'), t('Operations')); // Add any recognized books to the table list. foreac

BookController::$renderer

The renderer. Type: \Drupal\Core\Render\RendererInterface File core/modules/book/src/Controller/BookController.php, line 40 Class BookController Controller routines for book routes. Namespace Drupal\book\Controller Code protected $renderer;

BookController::$bookManager

The book manager. Type: \Drupal\book\BookManagerInterface File core/modules/book/src/Controller/BookController.php, line 26 Class BookController Controller routines for book routes. Namespace Drupal\book\Controller Code protected $bookManager;

BookController::$bookExport

The book export service. Type: \Drupal\book\BookExport File core/modules/book/src/Controller/BookController.php, line 33 Class BookController Controller routines for book routes. Namespace Drupal\book\Controller Code protected $bookExport;

BookController

Controller routines for book routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\book\Controller\BookController File core/modules/book/src/Controller/BookController.php, line 19 Namespace Drupal\book\Controller Members Name Modifiers Type Description BookController::$bookExport protected property

BookBreadcrumbBuilder::__construct

public BookBreadcrumbBuilder::__construct(EntityManagerInterface $entity_manager, AccountInterface $account) Constructs the BookBreadcrumbBuilder. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service. \Drupal\Core\Session\AccountInterface $account: The current user account. File core/modules/book/src/BookBreadcrumbBuilder.php, line 42 Class BookBreadcrumbBuilder Provides a breadcrumb builder for nodes in a book. Namespace Drupal\book Code p

BookBreadcrumbBuilder::build

public BookBreadcrumbBuilder::build(RouteMatchInterface $route_match) Builds the breadcrumb. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value \Drupal\Core\Breadcrumb\Breadcrumb A breadcrumb. Overrides BreadcrumbBuilderInterface::build File core/modules/book/src/BookBreadcrumbBuilder.php, line 58 Class BookBreadcrumbBuilder Provides a breadcrumb builder for nodes in a book. Namespace Drupal\book Code public function build(RouteMat