function BookManager::loadBookLink
Same name in this branch
- 10 core/modules/book/src/BookManager.php \Drupal\book\BookManager::loadBookLink()
Same name and namespace in other branches
- 9 core/modules/book/src/BookManager.php \Drupal\book\BookManager::loadBookLink()
- 8.9.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::loadBookLink()
- 11.x core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::loadBookLink()
- 11.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::loadBookLink()
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.
Overrides BookManagerInterface::loadBookLink
File
-
core/
modules/ book/ src/ ProxyClass/ BookManager.php, line 187
Class
- BookManager
- Provides a proxy class for \Drupal\book\BookManager.
Namespace
Drupal\book\ProxyClassCode
public function loadBookLink($nid, $translate = true) {
return $this->lazyLoadItself()
->loadBookLink($nid, $translate);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.