‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Event\AfterLinkIsGeneratedEvent Class Reference

Public Member Functions

 __construct (private LinkResultInterface $linkResult, private readonly ContentObjectRenderer $contentObjectRenderer, private readonly array $linkInstructions,)
 setLinkResult (LinkResultInterface $linkResult)
 getLinkResult ()
 getContentObjectRenderer ()
 getLinkInstructions ()

Detailed Description

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.

Definition at line 29 of file AfterLinkIsGeneratedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Event\AfterLinkIsGeneratedEvent::__construct ( private LinkResultInterface  $linkResult,
private readonly ContentObjectRenderer  $contentObjectRenderer,
private readonly array  $linkInstructions 

Definition at line 31 of file AfterLinkIsGeneratedEvent.php.

Member Function Documentation

◆ getContentObjectRenderer()

TYPO3\CMS\Frontend\Event\AfterLinkIsGeneratedEvent::getContentObjectRenderer ( )

Definition at line 50 of file AfterLinkIsGeneratedEvent.php.

◆ getLinkInstructions()

TYPO3\CMS\Frontend\Event\AfterLinkIsGeneratedEvent::getLinkInstructions ( )

Returns the original instructions / $linkConfiguration that were used to build the link

Definition at line 58 of file AfterLinkIsGeneratedEvent.php.

◆ getLinkResult()

TYPO3\CMS\Frontend\Event\AfterLinkIsGeneratedEvent::getLinkResult ( )

Definition at line 45 of file AfterLinkIsGeneratedEvent.php.

◆ setLinkResult()

TYPO3\CMS\Frontend\Event\AfterLinkIsGeneratedEvent::setLinkResult ( LinkResultInterface  $linkResult)

Update a link when a part was modified by an Event Listener.

Definition at line 40 of file AfterLinkIsGeneratedEvent.php.