ModifyUrlForCanonicalTagEvent
FinalYes
PSR-14 event to alter (or empty) a canonical URL for the href="" attribute of a canonical URL.
Table of Contents
Methods
- __construct() : mixed
- getCanonicalGenerationDisabledException() : CanonicalGenerationDisabledException|null
- getPage() : Page
- getRequest() : ServerRequestInterface
- getUrl() : string
- setUrl() : void
Methods
__construct()
public
__construct(ServerRequestInterface $request, Page $page, string $url, CanonicalGenerationDisabledException|null $canonicalGenerationDisabledException) : mixed
Parameters
- $request : ServerRequestInterface
- $page : Page
- $url : string
- $canonicalGenerationDisabledException : CanonicalGenerationDisabledException|null
getCanonicalGenerationDisabledException()
public
getCanonicalGenerationDisabledException() : CanonicalGenerationDisabledException|null
Return values
CanonicalGenerationDisabledException|nullgetPage()
public
getPage() : Page
Return values
PagegetRequest()
public
getRequest() : ServerRequestInterface
Return values
ServerRequestInterfacegetUrl()
public
getUrl() : string
Return values
stringsetUrl()
public
setUrl(string $url) : void
Parameters
- $url : string