public function ViewPrintController::viewRedirect in Entity Print 8.2
Provides a redirect BC layer for the old routes.
Parameters
string $export_type: The export type.
string $view_name: The view machine name.
string $display_id: The machine name of the display.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse The redirect response.
1 string reference to 'ViewPrintController::viewRedirect'
- entity_print_views.routing.yml in modules/
entity_print_views/ entity_print_views.routing.yml - modules/entity_print_views/entity_print_views.routing.yml
File
- modules/
entity_print_views/ src/ Controller/ ViewPrintController.php, line 191
Class
- ViewPrintController
- Controller class for printing Views.
Namespace
Drupal\entity_print_views\ControllerCode
public function viewRedirect($export_type, $view_name, $display_id) {
return $this
->redirect('entity_print_views.view', [
'export_type' => $export_type,
'view_name' => $view_name,
'display_id' => $display_id,
]);
}