‪TYPO3CMS  10.4
TYPO3\CMS\Recordlist\LinkHandler\UrlLinkHandler Class Reference
Inheritance diagram for TYPO3\CMS\Recordlist\LinkHandler\UrlLinkHandler:
TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler TYPO3\CMS\Recordlist\LinkHandler\LinkHandlerInterface

Public Member Functions

 __construct ()
 
bool canHandleLink (array $linkParts)
 
string formatCurrentUrl ()
 
string render (ServerRequestInterface $request)
 
string[] getBodyTagAttributes ()
 

Protected Attributes

array $linkParts = array( )
 
bool $updateSupported = false
 

Additional Inherited Members

Detailed Description

Link handler for external URLs

This class is a specific LinkHandler implementation and is not part of the TYPO3's Core API.

Definition at line 26 of file UrlLinkHandler.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Recordlist\LinkHandler\UrlLinkHandler::__construct ( )

Constructor

Reimplemented from TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler.

Definition at line 43 of file UrlLinkHandler.php.

Member Function Documentation

◆ canHandleLink()

bool TYPO3\CMS\Recordlist\LinkHandler\UrlLinkHandler::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$linkParts‪Link parts as returned from TypoLinkCodecService
Returns
‪bool

Implements TYPO3\CMS\Recordlist\LinkHandler\LinkHandlerInterface.

Definition at line 59 of file UrlLinkHandler.php.

References TYPO3\CMS\Recordlist\LinkHandler\UrlLinkHandler\$linkParts.

◆ formatCurrentUrl()

string TYPO3\CMS\Recordlist\LinkHandler\UrlLinkHandler::formatCurrentUrl ( )

Format the current link for HTML output

Returns
‪string

Implements TYPO3\CMS\Recordlist\LinkHandler\LinkHandlerInterface.

Definition at line 75 of file UrlLinkHandler.php.

◆ getBodyTagAttributes()

string [] TYPO3\CMS\Recordlist\LinkHandler\UrlLinkHandler::getBodyTagAttributes ( )
Returns
‪string[] Array of body-tag attributes

Implements TYPO3\CMS\Recordlist\LinkHandler\LinkHandlerInterface.

Definition at line 98 of file UrlLinkHandler.php.

◆ render()

string TYPO3\CMS\Recordlist\LinkHandler\UrlLinkHandler::render ( ServerRequestInterface  $request)

Render the link handler

Parameters
ServerRequestInterface$request
Returns
‪string

Implements TYPO3\CMS\Recordlist\LinkHandler\LinkHandlerInterface.

Definition at line 87 of file UrlLinkHandler.php.

Member Data Documentation

◆ $linkParts

array TYPO3\CMS\Recordlist\LinkHandler\UrlLinkHandler::$linkParts = array( )
protected

Parts of the current link

Definition at line 32 of file UrlLinkHandler.php.

Referenced by TYPO3\CMS\Recordlist\LinkHandler\UrlLinkHandler\canHandleLink().

◆ $updateSupported

bool TYPO3\CMS\Recordlist\LinkHandler\UrlLinkHandler::$updateSupported = false
protected

We don't support updates since there is no difference to simply set the link again.

Definition at line 38 of file UrlLinkHandler.php.