You are here

public function RealEstateForm::buildForm in Styled Google Map 8.2

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

modules/demo/src/Form/RealEstateForm.php, line 18

Class

RealEstateForm
Form controller for Real estate edit forms.

Namespace

Drupal\styled_google_map_demo\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {

  /* @var $entity \Drupal\styled_google_map_demo\Entity\RealEstate */
  $form = parent::buildForm($form, $form_state);
  $entity = $this->entity;
  return $form;
}