Issue #2901412 by claudiu.cristea, pfrenssen, grathbone, ravi.shankar,...
Issue #2901412 by claudiu.cristea, pfrenssen, grathbone, ravi.shankar, saidatom, Lendude, quietone: Add current route parameters to the confirmation form route
@@ -101,6 +112,11 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition
$this->languageManager=$language_manager;
$this->messenger=$messenger;
$this->entityRepository=$entity_repository;
if(!$route_match){
@trigger_error('Calling BulkForm::__construct() without the $route_match argument is deprecated in drupal:10.3.0 and the $route_match argument will be required in drupal:11.0.0. See https://www.drupal.org/node/3115868',E_USER_DEPRECATED);
$route_match=\Drupal::routeMatch();
}
$this->routeMatch=$route_match;
}
/**
@@ -114,7 +130,8 @@ public static function create(ContainerInterface $container, array $configuratio
$container->get('entity_type.manager'),
$container->get('language_manager'),
$container->get('messenger'),
$container->get('entity.repository')
$container->get('entity.repository'),
$container->get('current_route_match')
);
}
@@ -428,7 +445,8 @@ public function viewsFormSubmit(&$form, FormStateInterface $form_state) {