protected static function RedirectController::getFullUrl in File Link 8
Same name and namespace in other branches
- 2.0.x tests/modules/file_link_test/src/Controller/RedirectController.php \Drupal\file_link_test\Controller\RedirectController::getFullUrl()
Provides a full URL given a path relative to file_link_test module.
Parameters
string $path: A path relative to file_link_test module.
Return value
string An absolute URL.
1 call to RedirectController::getFullUrl()
- RedirectController::redirectToFile in tests/
modules/ file_link_test/ src/ Controller/ RedirectController.php - Builds the response.
File
- tests/
modules/ file_link_test/ src/ Controller/ RedirectController.php, line 30
Class
- RedirectController
- Returns responses for File Link Test routes.
Namespace
Drupal\file_link_test\ControllerCode
protected static function getFullUrl($path) {
return Url::fromUri('base:/' . drupal_get_path('module', 'file_link_test') . $path, [
'absolute' => TRUE,
])
->toString();
}