public function MaestroManualWebTask::prepareTaskForSave in Maestro 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/EngineTasks/MaestroManualWebTask.php \Drupal\maestro\Plugin\EngineTasks\MaestroManualWebTask::prepareTaskForSave()
The specific task's manipulation of the values to save for a template save.
Parameters
array $form: The form.
\Drupal\Core\Form\FormStateInterface $form_state: The form's form state.
array $task: The fully loaded task array from the template.
Overrides MaestroEngineTaskInterface::prepareTaskForSave
File
- src/
Plugin/ EngineTasks/ MaestroManualWebTask.php, line 141
Class
- MaestroManualWebTask
- Maestro Manual Web Task Plugin.
Namespace
Drupal\maestro\Plugin\EngineTasksCode
public function prepareTaskForSave(array &$form, FormStateInterface $form_state, array &$task) {
$task['handler'] = $form_state
->getValue('handler');
$task['data']['modal'] = $form_state
->getValue('modal');
}