public function FieldModuleUninstallValidator::__construct in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/Field/FieldModuleUninstallValidator.php \Drupal\Core\Field\FieldModuleUninstallValidator::__construct()
- 8 core/lib/Drupal/Core/ProxyClass/Field/FieldModuleUninstallValidator.php \Drupal\Core\ProxyClass\Field\FieldModuleUninstallValidator::__construct()
Same name and namespace in other branches
- 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\FieldCode
public function __construct(EntityManagerInterface $entity_manager, TranslationInterface $string_translation) {
$this->entityManager = $entity_manager;
$this->stringTranslation = $string_translation;
}