You are here

public function MaestroInteractiveExampleTask::__construct in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 modules/examples/maestro_interactive_task_plugin_example/src/Plugin/EngineTasks/MaestroInteractiveExampleTask.php \Drupal\maestro_interactive_task_plugin_example\Plugin\EngineTasks\MaestroInteractiveExampleTask::__construct()

Constructor.

Parameters

array $configuration: The incoming configuration information from the engine execution. [0] - is the process ID [1] - is the queue ID The processID and queueID properties are defined in the MaestroTaskTrait.

Overrides PluginBase::__construct

File

modules/examples/maestro_interactive_task_plugin_example/src/Plugin/EngineTasks/MaestroInteractiveExampleTask.php, line 39

Class

MaestroInteractiveExampleTask
Maestro Interactive Example Task Plugin.

Namespace

Drupal\maestro_interactive_task_plugin_example\Plugin\EngineTasks

Code

public function __construct(array $configuration = NULL) {
  if (is_array($configuration)) {
    $this->processID = $configuration[0];
    $this->queueID = $configuration[1];
  }
}