PHP Class Contao\PageRedirect

Inheritance: extends Frontend
Datei anzeigen Open project: contao/core-bundle

Public Methods

Method Description
generate ( PageModel $objPage ) Redirect to an external page
getResponse ( PageModel $objPage ) : RedirectResponse Return a response object

Protected Methods

Method Description
getRedirectStatusCode ( PageModel $objPage ) : integer Return the redirect status code

Method Details

generate() public method

Redirect to an external page
public generate ( PageModel $objPage )
$objPage PageModel

getRedirectStatusCode() protected method

Return the redirect status code
protected getRedirectStatusCode ( PageModel $objPage ) : integer
$objPage PageModel
return integer

getResponse() public method

Return a response object
public getResponse ( PageModel $objPage ) : RedirectResponse
$objPage PageModel
return Symfony\Component\HttpFoundation\RedirectResponse