‪TYPO3CMS  ‪main
TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent Class Reference

Public Member Functions

 __construct (private readonly ServerRequestInterface $request, private readonly Page $page, private string $url, private readonly ?CanonicalGenerationDisabledException $canonicalGenerationDisabledException)
 
 getUrl ()
 
 setUrl (string $url)
 
 getRequest ()
 
 getPage ()
 
 getCanonicalGenerationDisabledException ()
 

Detailed Description

PSR-14 event to alter (or empty) a canonical URL for the href="" attribute of a canonical URL.

Definition at line 27 of file ModifyUrlForCanonicalTagEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent::__construct ( private readonly ServerRequestInterface  $request,
private readonly Page  $page,
private string  $url,
private readonly ?CanonicalGenerationDisabledException  $canonicalGenerationDisabledException 
)

Definition at line 29 of file ModifyUrlForCanonicalTagEvent.php.

Member Function Documentation

◆ getCanonicalGenerationDisabledException()

TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent::getCanonicalGenerationDisabledException ( )

Definition at line 56 of file ModifyUrlForCanonicalTagEvent.php.

◆ getPage()

TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent::getPage ( )

Definition at line 51 of file ModifyUrlForCanonicalTagEvent.php.

◆ getRequest()

TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent::getRequest ( )

Definition at line 46 of file ModifyUrlForCanonicalTagEvent.php.

◆ getUrl()

TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent::getUrl ( )

Definition at line 36 of file ModifyUrlForCanonicalTagEvent.php.

References TYPO3\CMS\Webhooks\Message\$url.

◆ setUrl()

TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent::setUrl ( string  $url)