Feature: Introduce PSR-14 ModifyProfileTitlePlaceholderReplacementEvent in ProfileTitleProvider
Description
With recent changes a series of features has been implemented to make the HTML title tag for person profile pages more flexible, with a placeholder based FlexForm options and also allowing to influence the default and the setting pageTitleFormat.
The used Profile already looks into the format
string and provides the ability to replace placeholders, which
matches getters in the profile.
To provide even more flexibility, this change introduces a new
PSR-14 Event Modify,
which is dispatched for each placeholder enriched with quite a
handfull of use-full context information.
Following methods are available on the event:
getcontaining the request along with easy access methods to site, siteLanguage and extbase plugin information and the plugin settings.Plugin Controller Action Context (): Plugin Controller Action Context Interface getthe current person profile to display.Profile (): Profile getthe original/raw placeholder identifier.Placeholder () getthe value to replace the placeholder with, which may differ already if a earlier event listener changed the value usingReplacement () set.Replacement () setto set the value used to replace the placeholder.Replacement (string $replacement): void
This event allows project to implement custom placeholders and the replacement without using old-school xclassing technique.