function 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 76

Class

BookUninstallValidator
Prevents book module from being uninstalled under certain conditions.

Namespace

Drupal\book

Code

protected function hasBookOutlines() {
  return $this->bookOutlineStorage
    ->hasBooks();
}

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