Voting starts in March for the Drupal Association Board election.
Discussed with @catch on IRC to closein favour of this.
Entity types can define now plurals for their labels starting with. It's possible now to have the variants "content item" (singular) and "content items" (plural) for nodes. We want the same for bundles. We want to be able to have "article" (singular) and "articles" (plural).
It's not the same as for entity types. Entity types can define the label plural variants in the annotation while for bundles the site builder should be able to add such variants. Thus we need to store the variants in the bundle config entity and provide UI for site builders.
\Drupal\Core\Config\Entity\ConfigEntityBundleBaseimplement a new interface
- Add next methods to the new
getCountLabel(). These are similar to those implemented to entity types.
- Create a 'bundle_config_entity' schema that contains the new storage keys:
- Implement the UI and storage for NodeType entity type.
Open issues for each bundle type that requires label plurals.
User interface changes
User is able to add plural variants in NodeTypeForm UI.
The site is installed in English (2 variants)
The site is installed in Romanian (3 variants)
Data model changes
The bundle config entity has new keys/values: label_singular, label_plural, label_count.