You are here

public function MaestroNonInteractiveExampleTaskUninstallValidator::__construct in Maestro 3.x

Same name in this branch
  1. 3.x modules/examples/maestro_noninteractive_task_plugin_example/src/MaestroNonInteractiveExampleTaskUninstallValidator.php \Drupal\maestro_noninteractive_task_plugin_example\MaestroNonInteractiveExampleTaskUninstallValidator::__construct()
  2. 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
  1. 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_example

Code

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;
}