BookManagerInterface::loadBookLinks

public BookManagerInterface::loadBookLinks($nids, $translate = TRUE) Loads multiple book entries. The entries of a book entry is documented in \Drupal\book\BookOutlineStorageInterface::loadMultiple. If $translate is TRUE, it also checks access ('access' key) and loads the title from the node itself. Parameters int[] $nids: An array of nids to load. bool $translate: If TRUE, set access, title, and other elements. Return value array[] The book data of each node keyed by NID. See also \Drupal\b

BookManagerInterface::saveBookLink

public BookManagerInterface::saveBookLink(array $link, $new) Saves a single book entry. Parameters array $link: The link data to save. bool $new: Is this a new book. Return value array The book data of that node. File core/modules/book/src/BookManagerInterface.php, line 197 Class BookManagerInterface Provides an interface defining a book manager. Namespace Drupal\book Code public function saveBookLink(array $link, $new);

BookManagerInterface::loadBookLink

public BookManagerInterface::loadBookLink($nid, $translate = TRUE) Loads a single book entry. The entries of a book entry is documented in \Drupal\book\BookOutlineStorageInterface::loadMultiple. If $translate is TRUE, it also checks access ('access' key) and loads the title from the node itself. Parameters int $nid: The node ID of the book. bool $translate: If TRUE, set access, title, and other elements. Return value array The book data of that node. See also \Drupal\book\BookOutlineStorageI

BookManagerInterface::bookTreeOutput

public BookManagerInterface::bookTreeOutput(array $tree) Returns a rendered menu tree. The menu item's LI element is given one of the following classes: expanded: The menu item is showing its submenu. collapsed: The menu item has a submenu which is not shown. Parameters array $tree: A data structure representing the tree as returned from buildBookOutlineData. Return value array A structured array to be rendered by drupal_render(). See also \Drupal\Core\Menu\MenuLinkTree::build File core/

BookManagerInterface::bookTreeGetFlat

public BookManagerInterface::bookTreeGetFlat(array $book_link) Gets the book for a page and returns it as a linear array. Parameters array $book_link: A fully loaded book link that is part of the book hierarchy. Return value array A linear array of book links in the order that the links are shown in the book, so the previous and next pages are the elements before and after the element corresponding to the current node. The children of the current node (if any) will come immediately after it i

BookManagerInterface::checkNodeIsRemovable

public BookManagerInterface::checkNodeIsRemovable(NodeInterface $node) Determines if a node can be removed from the book. A node can be removed from a book if it is actually in a book and it either is not a top-level page or is a top-level page with no children. Parameters \Drupal\node\NodeInterface $node: The node to remove from the outline. Return value bool TRUE if a node can be removed from the book, FALSE otherwise. File core/modules/book/src/BookManagerInterface.php, line 294 Class

BookManagerInterface::deleteFromBook

public BookManagerInterface::deleteFromBook($nid) Deletes node's entry from book table. Parameters int $nid: The nid to delete. File core/modules/book/src/BookManagerInterface.php, line 237 Class BookManagerInterface Provides an interface defining a book manager. Namespace Drupal\book Code public function deleteFromBook($nid);

BookManagerInterface::getAllBooks

public BookManagerInterface::getAllBooks() Returns an array of all books. This list may be used for generating a list of all the books, or for building the options for a form select. Return value array An array of all books. File core/modules/book/src/BookManagerInterface.php, line 169 Class BookManagerInterface Provides an interface defining a book manager. Namespace Drupal\book Code public function getAllBooks();

BookManagerInterface::getActiveTrailIds

public BookManagerInterface::getActiveTrailIds($bid, $link) Gets the active trail IDs for the specified book at the provided path. Parameters string $bid: The Book ID to find links for. array $link: A fully loaded menu link. Return value array An array containing the active trail: a list of mlids. File core/modules/book/src/BookManagerInterface.php, line 50 Class BookManagerInterface Provides an interface defining a book manager. Namespace Drupal\book Code public function getActiveTr

BookManagerInterface::getBookParents

public BookManagerInterface::getBookParents(array $item, array $parent = array()) File core/modules/book/src/BookManagerInterface.php, line 210 Class BookManagerInterface Provides an interface defining a book manager. Namespace Drupal\book Code public function getBookParents(array $item, array $parent = array());