public function MaestroStartTask::getTaskEditForm in Maestro 8.2
Same name and namespace in other branches
- 3.x src/Plugin/EngineTasks/MaestroStartTask.php \Drupal\maestro\Plugin\EngineTasks\MaestroStartTask::getTaskEditForm()
Method to allow a task to add their own fields to the task edit form.
Parameters
array $task: This is the array representation of the task from the configuration entity.
string $templateMachineName: The Maestro template machine name.
Return value
array Array Must return form declaration fields for the task editor
Overrides MaestroEngineTaskInterface::getTaskEditForm
File
- src/
Plugin/ EngineTasks/ MaestroStartTask.php, line 102
Class
- MaestroStartTask
- Maestro Start Task Plugin.
Namespace
Drupal\maestro\Plugin\EngineTasksCode
public function getTaskEditForm(array $task, $templateMachineName) {
$form = [
'#markup' => t('There is nothing to edit on a Start Task'),
];
return $form;
}