public function InviteForm::buildForm in Invite 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/ InviteForm.php, line 59
Class
- InviteForm
- Form controller for Invite edit forms.
Namespace
Drupal\invite\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
/* @var $entity \Drupal\invite\Entity\Invite */
$form = parent::buildForm($form, $form_state);
$entity = $this->entity;
return $form;
}