BookManagerInterface::loadBookLink

public BookManagerInterface::loadBookLink($nid, $translate = TRUE)

Loads a single book entry.

The entries of a book entry is documented in \Drupal\book\BookOutlineStorageInterface::loadMultiple.

If $translate is TRUE, it also checks access ('access' key) and loads the title from the node itself.

Parameters

int $nid: The node ID of the book.

bool $translate: If TRUE, set access, title, and other elements.

Return value

array The book data of that node.

See also

\Drupal\book\BookOutlineStorageInterface::loadMultiple

File

core/modules/book/src/BookManagerInterface.php, line 71

Class

BookManagerInterface
Provides an interface defining a book manager.

Namespace

Drupal\book

Code

public function loadBookLink($nid, $translate = TRUE);
doc_Drupal
2016-10-29 08:48:16
Comments
Leave a Comment

Please login to continue.