You are here

public function FontForm::buildForm in @font-your-face 8.3

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/FontForm.php, line 18

Class

FontForm
Form controller for Font edit forms.

Namespace

Drupal\fontyourface\Form

Code

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

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