public function DepthUninstallValidator::__construct in Taxonomy Term Depth 8.2
Same name in this branch
- 8.2 src/DepthUninstallValidator.php \Drupal\taxonomy_term_depth\DepthUninstallValidator::__construct()
- 8.2 src/ProxyClass/DepthUninstallValidator.php \Drupal\taxonomy_term_depth\ProxyClass\DepthUninstallValidator::__construct()
DepthUninstallValidator constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager:
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager:
\Drupal\Core\StringTranslation\TranslationInterface $string_translation:
File
- src/
DepthUninstallValidator.php, line 40
Class
- DepthUninstallValidator
- Prevents uninstallation of modules providing active field storage.
Namespace
Drupal\taxonomy_term_depthCode
public function __construct(EntityTypeManagerInterface $entity_manager, EntityFieldManagerInterface $entity_field_manager, TranslationInterface $string_translation) {
$this->entityTypeManager = $entity_manager;
$this->entityFieldManager = $entity_field_manager;
$this->stringTranslation = $string_translation;
}