Feature: Allow modifying default and settings pageTitleFormat for detail view
Description
It's possible to set a pageTitleFormat in the plugin settings for
plugins using the Profile, which is
used in Profile to set the HTML page title for the
person profile pages.
This change extends the existing Modify, which
is dispatched in the Profile, to make
the default and the setting pageTitleFormat changeable using an
PSR-14 event listener.
This gives developers the ability to implement a wide range of use-cases in projects, for example adding a prefix to the format based on the site configuration or similar.
New Modify methods:
getDefault Page Title Format (): string setDefault Page Title Format (string $default Page Title Format): void getSettings Page Title Format (): string setSettings Page Title Format (string $settings Page Title Format): void getPage Title Format To Use (): string
The get is a calculated function to
get the aggregated format to use, which allows checking the result
in event listeners and determine the format finally used as detail
view page title.
The original default pageTitleFormat is Profile.