LinkResultInterface

interface \TYPO3\CMS\Frontend\Typolink\LinkResultInterface

Interface representing a created link to any type (page, file etc).

Table of Contents

Methods

getAttribute()  : string|null
getAttributes()  : array
getLinkConfiguration()  : array
getLinkText()  : string|null
getTarget()  : string
getType()  : string
getUrl()  : string
hasAttribute()  : bool
withAttribute()  : self
withAttributes()  : self
withLinkText()  : self
withTarget()  : self

Methods

getAttribute()

public getAttribute(string $attributeName) : string|null

Parameters

$attributeName : string

Return values

string|null

getAttributes()

public getAttributes() : array

Return values

array

getLinkConfiguration()

public getLinkConfiguration() : array

Return values

array

getLinkText()

public getLinkText() : string|null

Return values

string|null

getTarget()

public getTarget() : string

Return values

string

getType()

public getType() : string

Return values

string

getUrl()

public getUrl() : string

Return values

string

hasAttribute()

public hasAttribute(string $attributeName) : bool

Parameters

$attributeName : string

Return values

bool

withAttribute()

public withAttribute(string $attributeName, string|null $attributeValue) : self

Parameters

$attributeName : string
$attributeValue : string|null

Return values

self

withAttributes()

public withAttributes(array $additionalAttributes[, bool $resetExistingAttributes = false ]) : self

Parameters

$additionalAttributes : array
$resetExistingAttributes : bool = false

Return values

self

withLinkText()

public withLinkText(string $linkText) : self

Parameters

$linkText : string

Return values

self

withTarget()

public withTarget(string $target) : self

Parameters

$target : string

Return values

self
On this page