By tstoeckler on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.3.0
Introduced in version:
8.30-alpha1
Issue links:
Description:
Entity types can now specify a collection label which can be used as the title of a list (or collection) of entities of that type. If an entity has an auto-generated collection page by using DefaultHtmlRouteProvider as a route provider (and providing a collection link template, a list builder, and an admin permission) the collection label will be used as the title of that page.
To specify a collection, add the following to the entity type annotation:
* label_collection = @Translation("Products"),
Without a collection label, Drupal will default to a more generic collection label, for example Product entities in the given example. Therefore it is recommended to specify a collection label for all entity types.
Impacts:
Module developers