You are here

public function WorkflowTransitionElement::getInfo in Workflow 8

Returns the element properties for this element.

Return value

array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.

Overrides ElementInterface::getInfo

File

src/Element/WorkflowTransitionElement.php, line 550

Class

WorkflowTransitionElement
Provides a form element for the WorkflowTransitionForm and ~Widget.

Namespace

Drupal\workflow\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#return_value' => 1,
    '#process' => [
      [
        $class,
        'processTransition',
      ],
      [
        $class,
        'processAjaxForm',
      ],
    ],
    '#element_validate' => [
      [
        $class,
        'validateTransition',
      ],
    ],
    '#pre_render' => [
      [
        $class,
        'preRenderTransition',
      ],
    ],
    // '#theme' => 'input__checkbox',
    // '#theme' => 'input__textfield',
    '#theme_wrappers' => [
      'form_element',
    ],
  ];
}