function BookManager::loadBookLink

Same name and namespace in other branches
  1. 10 core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::loadBookLink()
  2. 10 core/modules/book/src/BookManager.php \Drupal\book\BookManager::loadBookLink()

File

core/modules/book/src/BookManager.php, line 822

Class

BookManager
Defines a book manager.

Namespace

Drupal\book

Code

public function loadBookLink($nid, $translate = TRUE) {
  $links = $this->loadBookLinks([
    $nid,
  ], $translate);
  return $links[$nid] ?? FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.