BookManager::getAllBooks

public 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

File

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

Class

BookManager
Defines a book manager.

Namespace

Drupal\book

Code

public function getAllBooks() {
  if (!isset($this->books)) {
    $this->loadBooks();
  }
  return $this->books;
}
doc_Drupal
2016-10-29 08:48:10
Comments
Leave a Comment

Please login to continue.