function BookManagerInterface::bookTreeGetFlat
Same name in other branches
- 9 core/modules/book/src/BookManagerInterface.php \Drupal\book\BookManagerInterface::bookTreeGetFlat()
- 8.9.x core/modules/book/src/BookManagerInterface.php \Drupal\book\BookManagerInterface::bookTreeGetFlat()
- 11.x core/modules/book/src/BookManagerInterface.php \Drupal\book\BookManagerInterface::bookTreeGetFlat()
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 in the array, and links will only be fetched as deep as one level deeper than $book_link.
File
-
core/
modules/ book/ src/ BookManagerInterface.php, line 154
Class
- BookManagerInterface
- Provides an interface defining a book manager.
Namespace
Drupal\bookCode
public function bookTreeGetFlat(array $book_link);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.