You are here

public function MaestroWebformTask::__construct in Maestro 8.2

Same name and namespace in other branches
  1. 3.x modules/maestro_webform/src/Plugin/EngineTasks/MaestroWebformTask.php \Drupal\maestro_webform\Plugin\EngineTasks\MaestroWebformTask::__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/maestro_webform/src/Plugin/EngineTasks/MaestroWebformTask.php, line 43

Class

MaestroWebformTask
Maestro Webform Task Plugin.

Namespace

Drupal\maestro_webform\Plugin\EngineTasks

Code

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