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

Class

BookManagerInterface
Provides an interface defining a book manager.

Namespace

Drupal\book

Code

public function bookTreeGetFlat(array $book_link);
doc_Drupal
2016-10-29 08:48:15
Comments
Leave a Comment

Please login to continue.