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
1 2 3 4 5 6 | public function getAllBooks() { if (!isset( $this ->books)) { $this ->loadBooks(); } return $this ->books; } |
Please login to continue.