Skip to content
Snippets Groups Projects
Commit da5262f4 authored by catch's avatar catch
Browse files

Issue #2703159 by vdanielpop: Add plural labels to Entity Types in Comment module

parent 2a43f31f
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,12 @@ ...@@ -20,6 +20,12 @@
* @ContentEntityType( * @ContentEntityType(
* id = "comment", * id = "comment",
* label = @Translation("Comment"), * label = @Translation("Comment"),
* label_singular = @Translation("comment"),
* label_plural = @Translation("comments"),
* label_count = @PluralTranslation(
* singular = "@count comment",
* plural = "@count comments",
* ),
* bundle_label = @Translation("Comment type"), * bundle_label = @Translation("Comment type"),
* handlers = { * handlers = {
* "storage" = "Drupal\comment\CommentStorage", * "storage" = "Drupal\comment\CommentStorage",
......
...@@ -11,6 +11,12 @@ ...@@ -11,6 +11,12 @@
* @ConfigEntityType( * @ConfigEntityType(
* id = "comment_type", * id = "comment_type",
* label = @Translation("Comment type"), * label = @Translation("Comment type"),
* label_singular = @Translation("comment type"),
* label_plural = @Translation("comment types"),
* label_count = @PluralTranslation(
* singular = "@count comment type",
* plural = "@count comment types",
* ),
* handlers = { * handlers = {
* "form" = { * "form" = {
* "default" = "Drupal\comment\CommentTypeForm", * "default" = "Drupal\comment\CommentTypeForm",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment