summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/Entity/Node.php
diff options
context:
space:
mode:
authoreffulgentsia2016-04-05 15:01:34 -0700
committereffulgentsia2016-04-05 15:01:34 -0700
commit517efbde7856dd78b52a3f41e763db539be61c09 (patch)
tree9bd25da7164476a103e3558954401dd491628c6d /core/modules/node/src/Entity/Node.php
parentf3f3800fe4f6dd27784caf9fb0302d46a5351b8d (diff)
Issue #1850080 by amateescu, dawehner, Xano, bojanz, martin107, Pancho, alexpott, tim.plunkett, icseh., stefank, Gábor Hojtsy, jhodgdon, tstoeckler: Entity type labels lack plurality, cannot generate UI text based on label if plural is needed
Diffstat (limited to 'core/modules/node/src/Entity/Node.php')
-rw-r--r--core/modules/node/src/Entity/Node.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php
index 7b20a3b..090ddd9 100644
--- a/core/modules/node/src/Entity/Node.php
+++ b/core/modules/node/src/Entity/Node.php
@@ -22,6 +22,12 @@ use Drupal\user\UserInterface;
* @ContentEntityType(
* id = "node",
* label = @Translation("Content"),
+ * label_singular = @Translation("content item"),
+ * label_plural = @Translation("content items"),
+ * label_count = @PluralTranslation(
+ * singular = "@count content item",
+ * plural = "@count content items"
+ * ),
* bundle_label = @Translation("Content type"),
* handlers = {
* "storage" = "Drupal\node\NodeStorage",