You are here

public function ContactForm::buildForm in RedHen CRM 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

modules/redhen_contact/src/Form/ContactForm.php, line 17

Class

ContactForm
Form controller for Contact edit forms.

Namespace

Drupal\redhen_contact\Form

Code

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

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