You are here

public function FieldModuleUninstallValidator::__construct in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/Field/FieldModuleUninstallValidator.php \Drupal\Core\Field\FieldModuleUninstallValidator::__construct()
  2. 8 core/lib/Drupal/Core/ProxyClass/Field/FieldModuleUninstallValidator.php \Drupal\Core\ProxyClass\Field\FieldModuleUninstallValidator::__construct()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Field/FieldModuleUninstallValidator.php \Drupal\Core\Field\FieldModuleUninstallValidator::__construct()

Constructs the object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

core/lib/Drupal/Core/Field/FieldModuleUninstallValidator.php, line 33
Contains \Drupal\Core\Field\FieldModuleUninstallValidator.

Class

FieldModuleUninstallValidator
Validates module uninstall readiness based on defined storage definitions.

Namespace

Drupal\Core\Field

Code

public function __construct(EntityManagerInterface $entity_manager, TranslationInterface $string_translation) {
  $this->entityManager = $entity_manager;
  $this->stringTranslation = $string_translation;
}