You are here

public function FormsStepsStepEditForm::form in Forms Steps 8

Gets the actual form array to be built.

Overrides FormsStepsStepFormBase::form

See also

\Drupal\Core\Entity\EntityForm::processForm()

\Drupal\Core\Entity\EntityForm::afterBuild()

File

src/Form/FormsStepsStepEditForm.php, line 24

Class

FormsStepsStepEditForm
Class FormsStepsStepEditForm.

Namespace

Drupal\forms_steps\Form

Code

public function form(array $form, FormStateInterface $form_state) {
  $form = parent::form($form, $form_state);
  $form['id']['#default_value'] = $this->stepId;
  $form['id']['#disabled'] = TRUE;
  return $form;
}