You are here

public function KeywordForm::buildForm in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_entity/src/Form/KeywordForm.php \Drupal\bibcite_entity\Form\KeywordForm::buildForm()

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/bibcite_entity/src/Form/KeywordForm.php, line 18

Class

KeywordForm
Form controller for Keyword edit forms.

Namespace

Drupal\bibcite_entity\Form

Code

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

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