function BookManager::bookSubtreeData
Same name in this branch
- 10 core/modules/book/src/BookManager.php \Drupal\book\BookManager::bookSubtreeData()
Same name and namespace in other branches
- 9 core/modules/book/src/BookManager.php \Drupal\book\BookManager::bookSubtreeData()
- 8.9.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::bookSubtreeData()
- 11.x core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::bookSubtreeData()
- 11.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::bookSubtreeData()
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
array A subtree of book links in an array, in the order they should be rendered.
Overrides BookManagerInterface::bookSubtreeData
File
-
core/
modules/ book/ src/ ProxyClass/ BookManager.php, line 228
Class
- BookManager
- Provides a proxy class for \Drupal\book\BookManager.
Namespace
Drupal\book\ProxyClassCode
public function bookSubtreeData($link) {
return $this->lazyLoadItself()
->bookSubtreeData($link);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.