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
- getPage() : Page
- getRequest() : ServerRequestInterface
- getUrl() : string
- setUrl() : void
Methods
__construct()
public
__construct(string $url, ServerRequestInterface $request, Page $page) : mixed
Parameters
- $url : string
- $request : ServerRequestInterface
- $page : Page
getPage()
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