PHP Class Contao\PageForward

Provide methods to handle a forward page.
Inheritance: extends Frontend
Afficher le fichier Open project: contao/core-bundle

Méthodes publiques

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

Méthodes protégées

Méthode Description
getRedirectStatusCode ( PageModel $objPage ) : integer Return the redirect status code

Private Methods

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

Method Details

generate() public méthode

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

getRedirectStatusCode() protected méthode

Return the redirect status code
protected getRedirectStatusCode ( PageModel $objPage ) : integer
$objPage PageModel
Résultat integer

getResponse() public méthode

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