BookManager

Defines a book manager. Hierarchy class \Drupal\book\BookManager implements BookManagerInterface uses StringTranslationTrait File core/modules/book/src/BookManager.php, line 20 Namespace Drupal\book Members Name Modifiers Type Description BookManager::$bookOutlineStorage protected property Book outline storage. BookManager::$books protected property Books Array. BookManager::$bookTreeFlattened protected property Stores flattened book trees. BookManager:

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(EntityManager

BookExport::exportTraverse

protected BookExport::exportTraverse(array $tree, $callable) Traverses the book tree to build printable or exportable output. During the traversal, the callback is applied to each node and is called recursively for each child of the node (in weight, title order). Parameters array $tree: A subtree of the book menu hierarchy, rooted at the current page. callable $callable: A callback to be called upon visiting a node in the tree. Return value string The output generated in visiting each node. F

BookExport::bookNodeExport

protected BookExport::bookNodeExport(NodeInterface $node, $children = '') Generates printer-friendly HTML for a node. Parameters \Drupal\node\NodeInterface $node: The node that will be output. string $children: (optional) All the rendered child nodes within the current node. Defaults to an empty string. Return value array A render array for the exported HTML of a given node. See also \Drupal\book\BookExport::exportTraverse() File core/modules/book/src/BookExport.php, line 132 Class BookE

BookExport::bookExportHtml

public BookExport::bookExportHtml(NodeInterface $node) Generates HTML for export when invoked by book_export(). The given node is embedded to its absolute depth in a top level section. For example, a child node with depth 2 in the hierarchy is contained in (otherwise empty) <div> elements corresponding to depth 0 and depth 1. This is intended to support WYSIWYG output; for instance, level 3 sections always look like level 3 sections, no matter their depth relative to the node selected to

BookExport::$viewBuilder

The node view builder. Type: \Drupal\Core\Entity\EntityViewBuilderInterface File core/modules/book/src/BookExport.php, line 27 Class BookExport Provides methods for exporting book to different formats. Namespace Drupal\book Code protected $viewBuilder;

BookExport::$nodeStorage

The node storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/book/src/BookExport.php, line 20 Class BookExport Provides methods for exporting book to different formats. Namespace Drupal\book Code protected $nodeStorage;

BookExport::$bookManager

The book manager. Type: \Drupal\book\BookManagerInterface File core/modules/book/src/BookExport.php, line 34 Class BookExport Provides methods for exporting book to different formats. Namespace Drupal\book Code protected $bookManager;

BookExport

Provides methods for exporting book to different formats. If you would like to add another format, swap this class in container. Hierarchy class \Drupal\book\BookExport File core/modules/book/src/BookExport.php, line 13 Namespace Drupal\book Members Name Modifiers Type Description BookExport::$bookManager protected property The book manager. BookExport::$nodeStorage protected property The node storage. BookExport::$viewBuilder protected property The node

BookController::__construct

public BookController::__construct(BookManagerInterface $bookManager, BookExport $bookExport, RendererInterface $renderer) 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. Namesp