You are here

public function ContributorCategoryDeleteForm::init in Bibliography & Citation 2.0.x

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

Initialize the form state and the entity before the first form build.

Overrides EntityForm::init

File

modules/bibcite_entity/src/Form/ContributorCategoryDeleteForm.php, line 36

Class

ContributorCategoryDeleteForm
Builds the form to delete Contributor category entities.

Namespace

Drupal\bibcite_entity\Form

Code

public function init(FormStateInterface $form_state) {
  parent::init($form_state);
  $this->inUse = $this
    ->checkInReference();
}