- Issue created by @donquixote
The EntityLIstBuilder class has a method ::getTitle() which by default returns nothing (null/void).
The method is called from EntityListBuilder::render(), to set the '#title' within a 'table' element.
But really, a `'#type' => 'table'` element does not use the '#title' property.
It is overridden in BlockContentTypeListBuilder::getTitle(), but the return value has no real effect.
We can change this return value to something else, but the page title on admin/structure/block-content remains the same, it is defined in the route definition.
Edit core/modules/block_content/src/BlockContentTypeListBuilder.php.
Change the return value from getTitle().
Visit admin/structure/block-content.
Title is still the same.
There could be a use case for a title method to fill the _page title_ for a list page.
The current getTitle() method does not do that.
This would be mostly relevant for list pages that need a dynamic title.
Especially if the page title should be different from the route title that is used in the breadcrumb.
But, tbh, now I am not sure what we should do with this method, as it already exists.
I just report it.
Active
11.0 π₯
Last updated