public function MaestroInteractiveExampleTaskUninstallValidator::__construct in Maestro 3.x
Same name in this branch
- 3.x modules/examples/maestro_interactive_task_plugin_example/src/MaestroInteractiveExampleTaskUninstallValidator.php \Drupal\maestro_interactive_task_plugin_example\MaestroInteractiveExampleTaskUninstallValidator::__construct()
- 3.x modules/examples/maestro_interactive_task_plugin_example/src/ProxyClass/MaestroInteractiveExampleTaskUninstallValidator.php \Drupal\maestro_interactive_task_plugin_example\ProxyClass\MaestroInteractiveExampleTaskUninstallValidator::__construct()
Same name and namespace in other branches
- 8.2 modules/examples/maestro_interactive_task_plugin_example/src/MaestroInteractiveExampleTaskUninstallValidator.php \Drupal\maestro_interactive_task_plugin_example\MaestroInteractiveExampleTaskUninstallValidator::__construct()
Constructs a new MaestroInteractiveExampleTaskUninstallValidator.
Parameters
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
File
- modules/
examples/ maestro_interactive_task_plugin_example/ src/ MaestroInteractiveExampleTaskUninstallValidator.php, line 23
Class
- MaestroInteractiveExampleTaskUninstallValidator
- Prevents example task module from being uninstalled when the task is bound in a template.
Namespace
Drupal\maestro_interactive_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;
}