You are here

public function RedirectController::redirectToFile in File Link 8

Same name and namespace in other branches
  1. 2.0.x tests/modules/file_link_test/src/Controller/RedirectController.php \Drupal\file_link_test\Controller\RedirectController::redirectToFile()

Builds the response.

1 string reference to 'RedirectController::redirectToFile'
file_link_test.routing.yml in tests/modules/file_link_test/file_link_test.routing.yml
tests/modules/file_link_test/file_link_test.routing.yml

File

tests/modules/file_link_test/src/Controller/RedirectController.php, line 17

Class

RedirectController
Returns responses for File Link Test routes.

Namespace

Drupal\file_link_test\Controller

Code

public function redirectToFile($status, $ext) {
  return new RedirectResponse(self::getFullUrl('/foo.' . $ext), $status);
}