You are here

public function MaestroNonInteractiveExampleTask::__construct in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 modules/examples/maestro_noninteractive_task_plugin_example/src/Plugin/EngineTasks/MaestroNonInteractiveExampleTask.php \Drupal\maestro_noninteractive_task_plugin_example\Plugin\EngineTasks\MaestroNonInteractiveExampleTask::__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_noninteractive_task_plugin_example/src/Plugin/EngineTasks/MaestroNonInteractiveExampleTask.php, line 39

Class

MaestroNonInteractiveExampleTask
Maestro Non Interactive Example Task Plugin.

Namespace

Drupal\maestro_noninteractive_task_plugin_example\Plugin\EngineTasks

Code

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