TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
UrlLinkHandler Class Reference
Inheritance diagram for UrlLinkHandler:
AbstractLinkHandler LinkHandlerInterface

Public Member Functions

 __construct ()
 
 canHandleLink (array $linkParts)
 
 formatCurrentUrl ()
 
 render (ServerRequestInterface $request)
 
 getBodyTagAttributes ()
 

Protected Attributes

 $linkParts = []
 
 $updateSupported = false
 

Additional Inherited Members

Detailed Description

Link handler for external URLs

Definition at line 24 of file UrlLinkHandler.php.

Constructor & Destructor Documentation

__construct ( )

Constructor

Definition at line 43 of file UrlLinkHandler.php.

Member Function Documentation

canHandleLink ( array  $linkParts)

Checks if this is the handler for the given link

The handler may store this information locally for later usage.

Parameters
array$linkPartsLink parts as returned from TypoLinkCodecService
Returns
bool

Implements LinkHandlerInterface.

Definition at line 59 of file UrlLinkHandler.php.

References UrlLinkHandler\$linkParts.

formatCurrentUrl ( )

Format the current link for HTML output

Returns
string

Implements LinkHandlerInterface.

Definition at line 77 of file UrlLinkHandler.php.

getBodyTagAttributes ( )
Returns
string[] Array of body-tag attributes

Implements LinkHandlerInterface.

Definition at line 116 of file UrlLinkHandler.php.

render ( ServerRequestInterface  $request)

Render the link handler

Parameters
ServerRequestInterface$request
Returns
string

Implements LinkHandlerInterface.

Definition at line 89 of file UrlLinkHandler.php.

References AbstractLinkHandler\getLanguageService(), and GeneralUtility\makeInstance().

Member Data Documentation

$linkParts = []
protected

Definition at line 31 of file UrlLinkHandler.php.

Referenced by UrlLinkHandler\canHandleLink().

$updateSupported = false
protected

Definition at line 38 of file UrlLinkHandler.php.