public function MaestroNonInteractiveExampleTask::getTaskColours in Maestro 3.x
Same name and namespace in other branches
- 8.2 modules/examples/maestro_noninteractive_task_plugin_example/src/Plugin/EngineTasks/MaestroNonInteractiveExampleTask.php \Drupal\maestro_noninteractive_task_plugin_example\Plugin\EngineTasks\MaestroNonInteractiveExampleTask::getTaskColours()
Returns the task's defined colours. This is useful if you want to let the tasks decide on what colours to paint themselves in the UI.
Overrides MaestroEngineTaskInterface::getTaskColours
File
- modules/
examples/ maestro_noninteractive_task_plugin_example/ src/ Plugin/ EngineTasks/ MaestroNonInteractiveExampleTask.php, line 91
Class
- MaestroNonInteractiveExampleTask
- Maestro Non Interactive Example Task Plugin.
Namespace
Drupal\maestro_noninteractive_task_plugin_example\Plugin\EngineTasksCode
public function getTaskColours() {
// This is the hex colour code used in the template builder to differentiate tasks from one another.
return '#606060';
// The colour chosen here is purely for example purposes.
}