function BookUninstallValidator::__construct
Same name in this branch
- 8.9.x core/modules/book/src/ProxyClass/BookUninstallValidator.php \Drupal\book\ProxyClass\BookUninstallValidator::__construct()
Same name in other branches
- 9 core/modules/book/src/ProxyClass/BookUninstallValidator.php \Drupal\book\ProxyClass\BookUninstallValidator::__construct()
- 9 core/modules/book/src/BookUninstallValidator.php \Drupal\book\BookUninstallValidator::__construct()
- 10 core/modules/book/src/ProxyClass/BookUninstallValidator.php \Drupal\book\ProxyClass\BookUninstallValidator::__construct()
- 10 core/modules/book/src/BookUninstallValidator.php \Drupal\book\BookUninstallValidator::__construct()
- 11.x core/modules/book/src/ProxyClass/BookUninstallValidator.php \Drupal\book\ProxyClass\BookUninstallValidator::__construct()
- 11.x core/modules/book/src/BookUninstallValidator.php \Drupal\book\BookUninstallValidator::__construct()
Constructs a new BookUninstallValidator.
Parameters
\Drupal\book\BookOutlineStorageInterface $book_outline_storage: The book outline storage.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
File
-
core/
modules/ book/ src/ BookUninstallValidator.php, line 42
Class
- BookUninstallValidator
- Prevents book module from being uninstalled whilst any book nodes exist or there are any book outline stored.
Namespace
Drupal\bookCode
public function __construct(BookOutlineStorageInterface $book_outline_storage, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
$this->bookOutlineStorage = $book_outline_storage;
$this->entityTypeManager = $entity_type_manager;
$this->stringTranslation = $string_translation;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.