You are here

public function MaestroInteractiveExampleTask::getTaskColours in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 modules/examples/maestro_interactive_task_plugin_example/src/Plugin/EngineTasks/MaestroInteractiveExampleTask.php \Drupal\maestro_interactive_task_plugin_example\Plugin\EngineTasks\MaestroInteractiveExampleTask::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_interactive_task_plugin_example/src/Plugin/EngineTasks/MaestroInteractiveExampleTask.php, line 91

Class

MaestroInteractiveExampleTask
Maestro Interactive Example Task Plugin.

Namespace

Drupal\maestro_interactive_task_plugin_example\Plugin\EngineTasks

Code

public function getTaskColours() {

  // This is the hex colour code used in the template builder to differentiate tasks from one another.
  return '#0000ff';

  // The colour chosen here is purely for example purposes.
}