Not sure if this actually matters as our bundles are themselves entities, but this is wrong:

 *  bundle_label = @Translation("Flagging"),

Comments

joachim created an issue. See original summary.

joachim’s picture

Status: Active » Needs review
StatusFileSize
new532 bytes
martin107’s picture

https://www.drupal.org/docs/8/api/entity-api/bundles

In Drupal 8, bundles are a type of container for information that holds the field or setting definitions. They are sometimes called "sub-types". Bundles are optional and in the hierarchy of container types for information they fit below entity types.

In terms of data modelling

Flag as a ConfigEntityType
and
Flagging as a ContentEntity

are related by very separate concepts..

So the thrust of your argument is "let us correctly something that is wrong and give flagging a bundle_label of flag"

I do not follow ....

joachim’s picture

Consider nodes and node types.

The content entity is the node. The bundles are the node types, represented by the node type entity. So the bundle label of nodes is 'node type'.

With flaggings and flags, the bundle of a flagging is the flag. Hence the bundle label should be 'Flag'.

  • socketwench committed 39d2b2e on 8.x-4.x authored by joachim
    Issue #2840485 by joachim: Fixed incorrect value for Flagging...
socketwench’s picture

Status: Needs review » Fixed

Joachim is right, it should be "Flag".

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.