function BookManager::getAllBooks

Same name in this branch
  1. 11.x core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::getAllBooks()
Same name and namespace in other branches
  1. 9 core/modules/book/src/BookManager.php \Drupal\book\BookManager::getAllBooks()
  2. 8.9.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::getAllBooks()
  3. 10 core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::getAllBooks()
  4. 10 core/modules/book/src/BookManager.php \Drupal\book\BookManager::getAllBooks()
1 call to BookManager::getAllBooks()
BookManager::addFormElements in core/modules/book/src/BookManager.php

File

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

Class

BookManager
Defines a book manager.

Namespace

Drupal\book

Code

public function getAllBooks() {
    if (!isset($this->books)) {
        $this->loadBooks();
    }
    return $this->books;
}

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