You are here

public function MaestroNonInteractiveExampleTask::getTemplateBuilderCapabilities in Maestro 8.2

Same name and namespace in other branches
  1. 3.x modules/examples/maestro_noninteractive_task_plugin_example/src/Plugin/EngineTasks/MaestroNonInteractiveExampleTask.php \Drupal\maestro_noninteractive_task_plugin_example\Plugin\EngineTasks\MaestroNonInteractiveExampleTask::getTemplateBuilderCapabilities()

Returns an array of consistenly keyed array elements that define what this task can do in the template builder. Elements are: edit, drawlineto, drawfalselineto, removelines, remove.

Overrides MaestroEngineTaskInterface::getTemplateBuilderCapabilities

File

modules/examples/maestro_noninteractive_task_plugin_example/src/Plugin/EngineTasks/MaestroNonInteractiveExampleTask.php, line 185

Class

MaestroNonInteractiveExampleTask
Maestro Non Interactive Example Task Plugin.

Namespace

Drupal\maestro_noninteractive_task_plugin_example\Plugin\EngineTasks

Code

public function getTemplateBuilderCapabilities() {

  /*
   * This method is used by the template builder to signal to the UI what this task can or cannot do.
   * Look at the function declaration for more info and other tasks for what they return.
   * Generally, the capabilities listed here are the general four that a task should be able to accomodate.
   */
  return [
    'edit',
    'drawlineto',
    'removelines',
    'remove',
  ];
}