You are here

public static function WorkflowTransitionElement::processTransition in Workflow 8

Generate an element.

This function is referenced in the Annotation for this class.

Parameters

array $element:

\Drupal\Core\Form\FormStateInterface $form_state:

array $complete_form:

Return value

array The Workflow element

File

src/Element/WorkflowTransitionElement.php, line 38

Class

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

Namespace

Drupal\workflow\Element

Code

public static function processTransition(array &$element, FormStateInterface $form_state, array &$complete_form) {
  workflow_debug(__FILE__, __FUNCTION__, __LINE__);

  // @todo D8:  test this snippet.
  return self::transitionElement($element, $form_state, $complete_form);
}