You are here

public function ExampleConfigEntityExistingForm::buildForm in Chaos Tool Suite (ctools) 8.3

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 FormInterface::buildForm

File

tests/modules/ctools_wizard_test/src/Form/ExampleConfigEntityExistingForm.php, line 23

Class

ExampleConfigEntityExistingForm
Simple wizard step form.

Namespace

Drupal\ctools_wizard_test\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['existing'] = [
    '#markup' => '<p>This step only shows if the entity is already existing!</p>',
  ];
  return $form;
}