You are here

public function BookManager::getAllBooks in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/book/src/BookManager.php \Drupal\book\BookManager::getAllBooks()

Returns an array of all books.

This list may be used for generating a list of all the books, or for building the options for a form select.

Return value

array An array of all books.

Overrides BookManagerInterface::getAllBooks

1 call to BookManager::getAllBooks()
BookManager::addFormElements in core/modules/book/src/BookManager.php
Builds the common elements of the book form for the node and outline forms.

File

core/modules/book/src/BookManager.php, line 89
Contains \Drupal\book\BookManager.

Class

BookManager
Defines a book manager.

Namespace

Drupal\book

Code

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