LinkResultInterface
Interface representing a created link to any type (page, file etc).
Table of Contents
Methods
- getAttribute() : string|null
- getAttributes() : array<string|int, mixed>
- getLinkConfiguration() : array<string|int, mixed>
- 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|nullgetAttributes()
public
getAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>getLinkConfiguration()
public
getLinkConfiguration() : array<string|int, mixed>
Return values
array<string|int, mixed>getLinkText()
public
getLinkText() : string|null
Return values
string|nullgetTarget()
public
getTarget() : string
Return values
stringgetType()
public
getType() : string
Return values
stringgetUrl()
public
getUrl() : string
Return values
stringhasAttribute()
public
hasAttribute(string $attributeName) : bool
Parameters
- $attributeName : string
Return values
boolwithAttribute()
public
withAttribute(string $attributeName, string|null $attributeValue) : self
Parameters
- $attributeName : string
- $attributeValue : string|null
Return values
selfwithAttributes()
public
withAttributes(array<string|int, mixed> $additionalAttributes[, bool $resetExistingAttributes = false ]) : self
Parameters
- $additionalAttributes : array<string|int, mixed>
- $resetExistingAttributes : bool = false
Return values
selfwithLinkText()
public
withLinkText(string $linkText) : self
Parameters
- $linkText : string
Return values
selfwithTarget()
public
withTarget(string $target) : self
Parameters
- $target : string