PHP Class Contao\PageForward

Provide methods to handle a forward page.
Inheritance: extends Frontend
Datei anzeigen Open project: contao/core-bundle

Public Methods

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

Protected Methods

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

Private Methods

Method Description
getForwardUrl ( PageModel $objPage ) : string Return the URL to the jumpTo or first published page

Method Details

generate() public method

Redirect to an internal 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