public function MaestroNonInteractiveExampleTask::getTaskEditForm in Maestro 8.2
Same name and namespace in other branches
- 3.x modules/examples/maestro_noninteractive_task_plugin_example/src/Plugin/EngineTasks/MaestroNonInteractiveExampleTask.php \Drupal\maestro_noninteractive_task_plugin_example\Plugin\EngineTasks\MaestroNonInteractiveExampleTask::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
- modules/
examples/ maestro_noninteractive_task_plugin_example/ src/ Plugin/ EngineTasks/ MaestroNonInteractiveExampleTask.php, line 135
Class
- MaestroNonInteractiveExampleTask
- Maestro Non Interactive Example Task Plugin.
Namespace
Drupal\maestro_noninteractive_task_plugin_example\Plugin\EngineTasksCode
public function getTaskEditForm(array $task, $templateMachineName) {
/*
* If you require any additional form elements, you manage those in here.
* Return a Form API array.
*/
return [];
}