You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting the page title is done through the localgov_core.page_header_display event, but the PageHeaderDisplayEvent class only wraps an entity, meaning it's possible to change the page title depending on the current entity being displayed, but this doesn't allow changing the title when the page being displayed doesn't relate to a content entity, such as a view.
It should be possible to change the title of a page from a hook_views_pre_render function, but using the $view->setTitle() method sets the title in the header but not the page title.
The text was updated successfully, but these errors were encountered:
Setting the page title is done through the localgov_core.page_header_display event, but the PageHeaderDisplayEvent class only wraps an entity, meaning it's possible to change the page title depending on the current entity being displayed, but this doesn't allow changing the title when the page being displayed doesn't relate to a content entity, such as a view.
It should be possible to change the title of a page from a hook_views_pre_render function, but using the
$view->setTitle()
method sets the title in the header but not the page title.The text was updated successfully, but these errors were encountered: