Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (App\Response\RedirectInterface $redirect, UrlInterface $urlBuilder) | |
setRefererUrl () | |
setRefererOrBaseUrl () | |
setUrl ($url) | |
setPath ($path, array $params=[]) | |
![]() | |
setHttpResponseCode ($httpCode) | |
setHeader ($name, $value, $replace=false) | |
setStatusHeader ($httpCode, $version=null, $phrase=null) | |
renderResult (ResponseInterface $response) | |
Protected Member Functions | |
render (HttpResponseInterface $response) | |
![]() | |
applyHttpHeaders (HttpResponseInterface $response) | |
render (HttpResponseInterface $response) | |
Protected Attributes | |
$redirect | |
$urlBuilder | |
$url | |
![]() | |
$httpResponseCode | |
$headers = [] | |
$statusHeaderCode | |
$statusHeaderVersion | |
$statusHeaderPhrase | |
In many cases controller actions may result in a redirect so this is a result object that implements all necessary properties of a HTTP redirect
@api
Definition at line 22 of file Redirect.php.
__construct | ( | App\Response\RedirectInterface | $redirect, |
UrlInterface | $urlBuilder | ||
) |
Constructor
App\Response\RedirectInterface | $redirect | |
UrlInterface | $urlBuilder |
Definition at line 46 of file Redirect.php.
|
protected |
setPath | ( | $path, | |
array | $params = [] |
||
) |
Set url by path
string | $path | |
array | $params |
Definition at line 94 of file Redirect.php.
setRefererOrBaseUrl | ( | ) |
Set referer url or base if referer is not exist
Definition at line 70 of file Redirect.php.
setRefererUrl | ( | ) |
setUrl | ( | $url | ) |
|
protected |
Definition at line 28 of file Redirect.php.
|
protected |
Definition at line 38 of file Redirect.php.
|
protected |
Definition at line 33 of file Redirect.php.