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::$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::$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::$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::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::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::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

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::applies

public BookBreadcrumbBuilder::applies(RouteMatchInterface $route_match) Whether this breadcrumb builder should be used to build the breadcrumb. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value bool TRUE if this builder should be used or FALSE to let other builders decide. Overrides BreadcrumbBuilderInterface::applies File core/modules/book/src/BookBreadcrumbBuilder.php, line 50 Class BookBreadcrumbBuilder Provides a breadcrumb builde

BookBreadcrumbBuilder::$nodeStorage

The node storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/book/src/BookBreadcrumbBuilder.php, line 25 Class BookBreadcrumbBuilder Provides a breadcrumb builder for nodes in a book. Namespace Drupal\book Code protected $nodeStorage;