TYPO3  7.6
Public Member Functions | List of all members
UrlHandlerInterface Interface Reference
Inheritance diagram for UrlHandlerInterface:
ExternalPageUrlHandler

Public Member Functions

 canHandleCurrentUrl ()
 
 handle ()
 

Detailed Description

This interface needs to be implemented by all classes that register for the hook in: $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['urlProcessing']['urlHandlers']

It can be used to do custom URL processing during a Frontend request.

Definition at line 23 of file UrlHandlerInterface.php.

Member Function Documentation

canHandleCurrentUrl ( )

Return TRUE if this hook handles the current URL. Warning! If TRUE is returned content rendering will be disabled! This method will be called in the constructor of the TypoScriptFrontendController

See Also
::__construct()
::initializeRedirectUrlHandlers()
Returns
bool

Implemented in ExternalPageUrlHandler.

handle ( )

Custom processing of the current URL.

If canHandle() has returned TRUE this method needs to take care of redirecting the user or generating custom output. This hook will be called BEFORE the user is redirected to an external URL configured in the page properties.

See Also
::redirectToExternalUrl()
Returns
void

Implemented in ExternalPageUrlHandler.