BookManagerInterface::getTableOfContents

public BookManagerInterface::getTableOfContents($bid, $depth_limit, array $exclude = array()) Returns an array of book pages in table of contents order. Parameters int $bid: The ID of the book whose pages are to be listed. int $depth_limit: Any link deeper than this value will be excluded (along with its children). array $exclude: (optional) An array of menu link ID values. Any link whose menu link ID is in this array will be excluded (along with its children). Defaults to an empty array. Retu

BookManagerInterface::getParentDepthLimit

public BookManagerInterface::getParentDepthLimit(array $book_link) Finds the depth limit for items in the parent select. Parameters array $book_link: A fully loaded menu link that is part of the book hierarchy. Return value int The depth limit for items in the parent select. File core/modules/book/src/BookManagerInterface.php, line 122 Class BookManagerInterface Provides an interface defining a book manager. Namespace Drupal\book Code public function getParentDepthLimit(array $book_l

BookManagerInterface::getLinkDefaults

public BookManagerInterface::getLinkDefaults($nid) Returns an array with default values for a book page's menu link. Parameters string|int $nid: The ID of the node whose menu link is being created. Return value array The default values for the menu link. File core/modules/book/src/BookManagerInterface.php, line 208 Class BookManagerInterface Provides an interface defining a book manager. Namespace Drupal\book Code public function getLinkDefaults($nid);

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());

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