AfterLinkIsGeneratedEvent
FinalYes
Generic event to modify any kind of link generation with typolink(). This is processed by all frontend-related links.
If a link could not be generated, a "UnableToLinkException" could be thrown by an Event Listener.
Table of Contents
Methods
- __construct() : mixed
- getContentObjectRenderer() : ContentObjectRenderer
- getLinkInstructions() : array<string|int, mixed>
- Returns the original instructions / $linkConfiguration that were used to build the link
- getLinkResult() : LinkResultInterface
- setLinkResult() : void
- Update a link when a part was modified by an Event Listener.
Methods
__construct()
public
__construct(LinkResultInterface $linkResult, ContentObjectRenderer $contentObjectRenderer, array<string|int, mixed> $linkInstructions) : mixed
Parameters
- $linkResult : LinkResultInterface
- $contentObjectRenderer : ContentObjectRenderer
- $linkInstructions : array<string|int, mixed>
getContentObjectRenderer()
public
getContentObjectRenderer() : ContentObjectRenderer
Return values
ContentObjectRenderergetLinkInstructions()
Returns the original instructions / $linkConfiguration that were used to build the link
public
getLinkInstructions() : array<string|int, mixed>
Return values
array<string|int, mixed>getLinkResult()
public
getLinkResult() : LinkResultInterface
Return values
LinkResultInterfacesetLinkResult()
Update a link when a part was modified by an Event Listener.
public
setLinkResult(LinkResultInterface $linkResult) : void
Parameters
- $linkResult : LinkResultInterface