AddPageTypeZeroSource
FinalYes
Event listener which build a source using site router for page type "0" and add it as PageTypeSource to the collection. Eventually existing PlainSlugReplacement source will be removed, if it would provide the same source definition as the generated PageTypeSource.
only to be used within redirects, not part of TYPO3 Core API.
Table of Contents
Methods
- __invoke() : void
Methods
__invoke()
public
__invoke(SlugRedirectChangeItemCreatedEvent $event) : void
Parameters
- $event : SlugRedirectChangeItemCreatedEvent
Attributes
- #[AsEventListener]
- $identifier: 'redirects-add-page-type-zero-source'
- $after: 'redirects-add-plain-slug-replacement-source'