You are here

public function MergeForm::__construct in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x 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);
}