function BookManager::bookTreeCollectNodeLinks

Same name in this branch
  1. 10 core/modules/book/src/BookManager.php \Drupal\book\BookManager::bookTreeCollectNodeLinks()
Same name and namespace in other branches
  1. 9 core/modules/book/src/BookManager.php \Drupal\book\BookManager::bookTreeCollectNodeLinks()
  2. 8.9.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::bookTreeCollectNodeLinks()
  3. 11.x core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::bookTreeCollectNodeLinks()
  4. 11.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::bookTreeCollectNodeLinks()

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.

Overrides BookManagerInterface::bookTreeCollectNodeLinks

File

core/modules/book/src/ProxyClass/BookManager.php, line 171

Class

BookManager
Provides a proxy class for \Drupal\book\BookManager.

Namespace

Drupal\book\ProxyClass

Code

public function bookTreeCollectNodeLinks(&$tree, &$node_links) {
  return $this->lazyLoadItself()
    ->bookTreeCollectNodeLinks($tree, $node_links);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.