You are here

public function MergeConfirmForm::__construct in Bibliography & Citation 8

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

File

modules/bibcite_entity/src/Form/MergeConfirmForm.php, line 47

Class

MergeConfirmForm
Confirm merge of 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->source = $route_match
    ->getParameter($parameter_name);
  $this->target = $route_match
    ->getParameter("{$parameter_name}_target");
}