You are here

public function MaestroInteractiveExampleTaskUninstallValidator::__construct in Maestro 8.2

Same name in this branch
  1. 8.2 modules/examples/maestro_interactive_task_plugin_example/src/MaestroInteractiveExampleTaskUninstallValidator.php \Drupal\maestro_interactive_task_plugin_example\MaestroInteractiveExampleTaskUninstallValidator::__construct()
  2. 8.2 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
  1. 3.x 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_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;
}