function BookUninstallValidator::hasBookOutlines
Same name in other branches
- 9 core/modules/book/src/BookUninstallValidator.php \Drupal\book\BookUninstallValidator::hasBookOutlines()
- 10 core/modules/book/src/BookUninstallValidator.php \Drupal\book\BookUninstallValidator::hasBookOutlines()
- 11.x core/modules/book/src/BookUninstallValidator.php \Drupal\book\BookUninstallValidator::hasBookOutlines()
Checks if there are any books in an outline.
Return value
bool TRUE if there are books, FALSE if not.
1 call to BookUninstallValidator::hasBookOutlines()
- BookUninstallValidator::validate in core/
modules/ book/ src/ BookUninstallValidator.php - Determines the reasons a module can not be uninstalled.
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\bookCode
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.