- π¦πΊAustralia acbramley
This issue has gone stale for almost 10 years.
I'm actually somewhat against this change,
label
is a consistent Drupalism applied to all entity types. Title is not. E.g in #1939224: Change block "label" so that it's called a title like everything else in the template file (and all other template files) β blocks don't have a title, they have a block description or label.If anything, the title_prefix/suffix/attributes should be the ones to change?
- π¨π¦Canada xmacinfo Canada
To get more developers on Drupal, some "Drupalism" needs to go.
Developers are typically giving a name to the things they create.
- Name of the block
- Name of the variable
- Name of the function
- Name of the fieldA label is a tag attached to an item.
So either we continue putting Drupal in a corner with its "Drupalism" or we adopt more generalized standards.
- π¦πΊAustralia acbramley
Thinking about this more, I think
label
is the better name to keep. We use it all over the place in Drupal such as in entity keys, other entity metadata keys (label_count),$entity->label()
and many other areas.Repeating #48 if anything I think title_prefix/suffix/attributes should be the thing to change but I don't feel strongly enough to open a follow up. If anyone else does, feel free :)