You are here

public function WorkflowTransitionEditForm::buildForm in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workflows/src/Form/WorkflowTransitionEditForm.php \Drupal\workflows\Form\WorkflowTransitionEditForm::buildForm()

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides EntityForm::buildForm

File

core/modules/workflows/src/Form/WorkflowTransitionEditForm.php, line 65

Class

WorkflowTransitionEditForm
Class WorkflowTransitionEditForm.

Namespace

Drupal\workflows\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $workflow_transition = NULL) {
  $this->transitionId = $workflow_transition;
  return parent::buildForm($form, $form_state);
}