public function ContributorForm::buildForm in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_entity/src/Form/ContributorForm.php \Drupal\bibcite_entity\Form\ContributorForm::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/ ContributorForm.php, line 18
Class
- ContributorForm
- Form controller for Contributor edit forms.
Namespace
Drupal\bibcite_entity\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
$form['#prefix'] = '<div id="bibcite-contributor-form-wrapper">';
$form['#suffix'] = '</div>';
return $form;
}