$form['#title'] doesn't work when the route has a _title_callback

Created on 21 October 2016, about 8 years ago
Updated 23 May 2024, 7 months ago

The documentation on page titles says that $form['#title'] is a 'last-chance' to change the title.

However, when the current route has a _title_callback set, this doesn't work.

This is seen for instance when using Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider with a custom entity type, and trying to set the title in the form.

🐛 Bug report
Status

Closed: outdated

Version

11.0 🔥

Component
Render 

Last updated 2 days ago

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024