public function KeywordForm::buildForm in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x 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\FormCode
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;
}