public function WebformNodeUninstallValidator::__construct in Webform 6.x
Same name in this branch
- 6.x modules/webform_node/src/WebformNodeUninstallValidator.php \Drupal\webform_node\WebformNodeUninstallValidator::__construct()
- 6.x modules/webform_node/src/ProxyClass/WebformNodeUninstallValidator.php \Drupal\webform_node\ProxyClass\WebformNodeUninstallValidator::__construct()
Same name and namespace in other branches
- 8.5 modules/webform_node/src/WebformNodeUninstallValidator.php \Drupal\webform_node\WebformNodeUninstallValidator::__construct()
Constructs a WebformNodeUninstallValidator object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
File
- modules/
webform_node/ src/ WebformNodeUninstallValidator.php, line 32
Class
- WebformNodeUninstallValidator
- Prevents webform_node module from being uninstalled whilst any webform nodes exist.
Namespace
Drupal\webform_nodeCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
$this->entityTypeManager = $entity_type_manager;
$this->stringTranslation = $string_translation;
}