You are here

public function FilebrowserUninstallValidator::__construct in Filebrowser 3.x

Same name and namespace in other branches
  1. 8.2 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

FilebrowserUninstallValidator

Namespace

Drupal\filebrowser

Code

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;
}