BookManagerInterface::bookTreeCollectNodeLinks

public BookManagerInterface::bookTreeCollectNodeLinks(&$tree, &$node_links) Collects node links from a given menu tree recursively. Parameters array $tree: The menu tree you wish to collect node links from. array $node_links: An array in which to store the collected node links. File core/modules/book/src/BookManagerInterface.php, line 132 Class BookManagerInterface Provides an interface defining a book manager. Namespace Drupal\book Code public function bookTreeCollectNodeLink

BookManagerInterface::bookTreeCheckAccess

public BookManagerInterface::bookTreeCheckAccess(&$tree, $node_links = array()) Checks access and performs dynamic operations for each link in the tree. Parameters array $tree: The book tree you wish to operate on. array $node_links: A collection of node link references generated from $tree by menu_tree_collect_node_links(). File core/modules/book/src/BookManagerInterface.php, line 265 Class BookManagerInterface Provides an interface defining a book manager. Namespace Drupal\book

BookManagerInterface::bookTreeAllData

public BookManagerInterface::bookTreeAllData($bid, $link = NULL, $max_depth = NULL) Gets the data structure representing a named menu tree. Since this can be the full tree including hidden items, the data returned may be used for generating an an admin interface or a select. Note: based on menu_tree_all_data(). Parameters int $bid: The Book ID to find links for. array|null $link: (optional) A fully loaded menu link, or NULL. If a link is supplied, only the path to root will be included in the

BookManagerInterface::bookSubtreeData

public BookManagerInterface::bookSubtreeData($link) Gets the data representing a subtree of the book hierarchy. The root of the subtree will be the link passed as a parameter, so the returned tree will contain this item and all its descendants in the menu tree. Parameters array $link: A fully loaded book link. Return value A subtree of book links in an array, in the order they should be rendered. File core/modules/book/src/BookManagerInterface.php, line 280 Class BookManagerInterface Pro

BookManagerInterface::bookLinkTranslate

public BookManagerInterface::bookLinkTranslate(&$link) Provides book loading, access control and translation. Note: copied from _menu_link_translate() in menu.inc, but reduced to the minimal code that's used. Parameters array $link: A book link. File core/modules/book/src/BookManagerInterface.php, line 143 Class BookManagerInterface Provides an interface defining a book manager. Namespace Drupal\book Code public function bookLinkTranslate(&$link);

BookManagerInterface::addFormElements

public BookManagerInterface::addFormElements(array $form, FormStateInterface $form_state, NodeInterface $node, AccountInterface $account, $collapsed = TRUE) Builds the common elements of the book form for the node and outline forms. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. \Drupal\node\NodeInterface $node: The node whose form is being viewed. \Drupal\Core\Session\AccountIn

BookManagerInterface

Provides an interface defining a book manager. Hierarchy interface \Drupal\book\BookManagerInterface File core/modules/book/src/BookManagerInterface.php, line 13 Namespace Drupal\book Members Name Modifiers Type Description BookManagerInterface::addFormElements public function Builds the common elements of the book form for the node and outline forms. BookManagerInterface::bookLinkTranslate public function Provides book loading, access control and translation.

BookManager::__construct

public BookManager::__construct(EntityManagerInterface $entity_manager, TranslationInterface $translation, ConfigFactoryInterface $config_factory, BookOutlineStorageInterface $book_outline_storage, RendererInterface $renderer) Constructs a BookManager object. File core/modules/book/src/BookManager.php, line 73 Class BookManager Defines a book manager. Namespace Drupal\book Code public function __construct(EntityManagerInterface $entity_manager, TranslationInterface $translation, Config

BookManager::updateParent

protected BookManager::updateParent(array $link) Sets the has_children flag of the parent of the node. This method is mostly called when a book link is moved/created etc. So we want to update the has_children flag of the new parent book link. Parameters array $link: The book link, data reflecting its new position, whose new parent we want to update. Return value bool TRUE if the update was successful (either there is no parent to update, or the parent was updated successfully), FALSE on failu

BookManager::updateOutline

public BookManager::updateOutline(NodeInterface $node) Handles additions and updates to the book outline. This common helper function performs all additions and updates to the book outline through node addition, node editing, node deletion, or the outline tab. Parameters \Drupal\node\NodeInterface $node: The node that is being saved, added, deleted, or moved. Return value bool TRUE if the book link was saved; FALSE otherwise. Overrides BookManagerInterface::updateOutline File core/modules/boo