public FieldModuleUninstallValidator::__construct(EntityManagerInterface $entity_manager, TranslationInterface $string_translation)
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 28
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; }
Please login to continue.