TYPO3  7.6
Public Member Functions | List of all members
LinkHandlerInterface Interface Reference
Inheritance diagram for LinkHandlerInterface:
FileLinkHandler MailLinkHandler PageLinkHandler UrlLinkHandler FolderLinkHandler

Public Member Functions

 getLinkAttributes ()
 
 modifyLinkAttributes (array $fieldDefinitions)
 
 initialize (AbstractLinkBrowserController $linkBrowser, $identifier, array $configuration)
 
 canHandleLink (array $linkParts)
 
 formatCurrentUrl ()
 
 render (ServerRequestInterface $request)
 
 isUpdateSupported ()
 
 getBodyTagAttributes ()
 

Detailed Description

Interface for link handlers displayed in the LinkBrowser

Definition at line 23 of file LinkHandlerInterface.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

Implemented in FileLinkHandler, MailLinkHandler, UrlLinkHandler, and PageLinkHandler.

formatCurrentUrl ( )

Format the current link for HTML output

Returns
string

Implemented in FileLinkHandler, PageLinkHandler, MailLinkHandler, and UrlLinkHandler.

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

Implemented in FileLinkHandler, PageLinkHandler, MailLinkHandler, and UrlLinkHandler.

getLinkAttributes ( )
Returns
array
initialize ( AbstractLinkBrowserController  $linkBrowser,
  $identifier,
array  $configuration 
)

Initialize the handler

Parameters
AbstractLinkBrowserController$linkBrowser
string$identifier
array$configurationPage TSconfig
Returns
void
isUpdateSupported ( )

Return TRUE if the handler supports to update a link.

This is useful for file or page links, when only attributes are changed.

Returns
bool
modifyLinkAttributes ( array  $fieldDefinitions)
Parameters
string[]$fieldDefinitions Array of link attribute field defintions
Returns
string[]

Implemented in PageLinkHandler.

render ( ServerRequestInterface  $request)

Render the link handler

Parameters
ServerRequestInterface$request
Returns
string

Implemented in MailLinkHandler, and UrlLinkHandler.