function ExampleConfigEntityGeneralForm::buildForm

Same name in other branches
  1. 4.0.x tests/modules/ctools_wizard_test/src/Form/ExampleConfigEntityGeneralForm.php \Drupal\ctools_wizard_test\Form\ExampleConfigEntityGeneralForm::buildForm()

Overrides FormInterface::buildForm

File

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

Class

ExampleConfigEntityGeneralForm
Class ExampleConfigEntityForm.

Namespace

Drupal\ctools_wizard_test\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
    $cached_values = $form_state->getTemporaryValue('wizard');
    
    /** @var \Drupal\ctools_wizard_test\Entity\ExampleConfigEntity $page */
    $config_entity = $cached_values['ctools_wizard_test_config_entity'];
    // The label and id will be added by the EntityFormWizardBase.
    return $form;
}