AbstractLinkHandler

AbstractYes

Base class for core link handlers.

Internal

This class should only be used internally. Extensions must implement the LinkHandlerInterface.

Table of Contents

Properties

$iconFactory  : IconFactory
$linkAttributes  : string[]
Available additional link attributes
$linkBrowser  : AbstractLinkBrowserController
$pageRenderer  : PageRenderer
$updateSupported  : bool
$view  : ViewInterface

Methods

__construct()  : mixed
getLinkAttributes()  : array
initialize()  : mixed
isUpdateSupported()  : bool
Return TRUE if the handler supports to update a link.
modifyLinkAttributes()  : string[]
setView()  : void
getBackendUser()  : BackendUserAuthentication
getLanguageService()  : LanguageService

Properties

$linkAttributes

Available additional link attributes

protected string[] $linkAttributes = ['target', 'title', 'class', 'params', 'rel']

'rel' only works in RTE, still we have to declare support for it.

$updateSupported

protected bool $updateSupported = true

Methods

getLinkAttributes()

public getLinkAttributes() : array
Return values
array

isUpdateSupported()

Return TRUE if the handler supports to update a link.

public isUpdateSupported() : bool

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

Return values
bool

modifyLinkAttributes()

public modifyLinkAttributes(string[] $fieldDefinitions) : string[]
Parameters
$fieldDefinitions : string[]

Array of link attribute field definitions

Return values
string[]
On this page

Search results