public function FilebrowserUninstallValidator::__construct in Filebrowser 8.2
Same name and namespace in other branches
- 3.x src/FilebrowserUninstallValidator.php \Drupal\filebrowser\FilebrowserUninstallValidator::__construct()
Constructs a new FilebrowserUninstallValidator.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface EntityTypeManager: The entity query factory.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
File
- src/
FilebrowserUninstallValidator.php, line 32
Class
Namespace
Drupal\filebrowserCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
$this->entityQuery = $entity_type_manager
->getStorage('node')
->getQuery();
$this->stringTranslation = $string_translation;
$this->entityTypeManager = $entity_type_manager;
}