You are here

public function CheckFormBase::buildForm in Production check & Production monitor 8

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

src/Form/CheckFormBase.php, line 52

Class

CheckFormBase
Provides a base form for prod check forms.

Namespace

Drupal\prod_check\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $this->plugin = $this->entity
    ->getPlugin();
  return parent::buildForm($form, $form_state);
}