You are here

public function MergeForm::__construct in Bibliography & Citation 2.0.x

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

File

modules/bibcite_entity/src/Form/MergeForm.php, line 32

Class

MergeForm
Merge bibliographic entities.

Namespace

Drupal\bibcite_entity\Form

Code

public function __construct(RouteMatchInterface $route_match) {
  $parameter_name = $route_match
    ->getRouteObject()
    ->getOption('_bibcite_entity_type_id');
  $this->entity = $route_match
    ->getParameter($parameter_name);
}