public function MaestroNonInteractiveExampleTaskUninstallValidator::__construct in Maestro 3.x
Same name in this branch
- 3.x modules/examples/maestro_noninteractive_task_plugin_example/src/MaestroNonInteractiveExampleTaskUninstallValidator.php \Drupal\maestro_noninteractive_task_plugin_example\MaestroNonInteractiveExampleTaskUninstallValidator::__construct()
- 3.x modules/examples/maestro_noninteractive_task_plugin_example/src/ProxyClass/MaestroNonInteractiveExampleTaskUninstallValidator.php \Drupal\maestro_noninteractive_task_plugin_example\ProxyClass\MaestroNonInteractiveExampleTaskUninstallValidator::__construct()
Same name and namespace in other branches
- 8.2 modules/examples/maestro_noninteractive_task_plugin_example/src/MaestroNonInteractiveExampleTaskUninstallValidator.php \Drupal\maestro_noninteractive_task_plugin_example\MaestroNonInteractiveExampleTaskUninstallValidator::__construct()
Constructs a new MaestroExampleTaskUninstallValidator.
Parameters
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
File
- modules/
examples/ maestro_noninteractive_task_plugin_example/ src/ MaestroNonInteractiveExampleTaskUninstallValidator.php, line 23
Class
- MaestroNonInteractiveExampleTaskUninstallValidator
- Prevents example task module from being uninstalled when the task is bound in a template.
Namespace
Drupal\maestro_noninteractive_task_plugin_exampleCode
public function __construct(TranslationInterface $string_translation) {
// We only use string translation in this validator, the rest is up to the Maestro Engine.
$this->stringTranslation = $string_translation;
}