You are here

public function HeartbeatTypeForm::buildForm in Heartbeat 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/HeartbeatTypeForm.php, line 80

Class

HeartbeatTypeForm
Class HeartbeatTypeForm.

Namespace

Drupal\heartbeat\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $this->entityTypes = Entity\Heartbeat::getEntityNames($this->entityTypeManager
    ->getDefinitions());
  $doStuff = 'stuff';
  return parent::buildForm($form, $form_state);
}