BookUninstallValidator::hasBookOutlines

protected BookUninstallValidator::hasBookOutlines()

Checks if there are any books in an outline.

Return value

bool TRUE if there are books, FALSE if not.

File

core/modules/book/src/BookUninstallValidator.php, line 74

Class

BookUninstallValidator
Prevents book module from being uninstalled whilst any book nodes exist or there are any book outline stored.

Namespace

Drupal\book

Code

protected function hasBookOutlines() {
  return $this->bookOutlineStorage->hasBooks();
}
doc_Drupal
2016-10-29 08:48:35
Comments
Leave a Comment

Please login to continue.