Skip to content
Snippets Groups Projects
Commit 5b1a747b authored by johnv's avatar johnv
Browse files

Issue #2725375: Added plural labels for Entity types

parent 13f12936
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,12 @@ use Drupal\user\UserInterface;
* @ConfigEntityType(
* id = "workflow_config_transition",
* label = @Translation("Workflow config transition"),
* label_singular = @Translation("Workflow config transition"),
* label_plural = @Translation("Workflow config transitions"),
* label_count = @PluralTranslation(
* singular = "@count Workflow config transition",
* plural = "@count Workflow config transitions",
* ),
* module = "workflow",
* handlers = {
* "list_builder" = "Drupal\workflow_ui\Controller\WorkflowConfigTransitionListBuilder",
......
......@@ -12,6 +12,12 @@ use Drupal\Core\Field\BaseFieldDefinition;
* @ContentEntityType(
* id = "workflow_scheduled_transition",
* label = @Translation("Workflow scheduled transition"),
* label_singular = @Translation("Workflow scheduled transition"),
* label_plural = @Translation("Workflow scheduled transitions"),
* label_count = @PluralTranslation(
* singular = "@count Workflow scheduled transition",
* plural = "@count Workflow scheduled transitions",
* ),
* bundle_label = @Translation("Workflow type"),
* module = "workflow",
* handlers = {
......
......@@ -14,6 +14,12 @@ use Drupal\Core\Session\AccountInterface;
* @ConfigEntityType(
* id = "workflow_state",
* label = @Translation("Workflow state"),
* label_singular = @Translation("Workflow state"),
* label_plural = @Translation("Workflow states"),
* label_count = @PluralTranslation(
* singular = "@count Workflow state",
* plural = "@count Workflow states",
* ),
* module = "workflow",
* handlers = {
* "list_builder" = "Drupal\workflow_ui\Controller\WorkflowStateListBuilder",
......
......@@ -18,6 +18,12 @@ use Drupal\user\UserInterface;
* @ContentEntityType(
* id = "workflow_transition",
* label = @Translation("Workflow executed transition"),
* label_singular = @Translation("Workflow executed transition"),
* label_plural = @Translation("Workflow executed transitions"),
* label_count = @PluralTranslation(
* singular = "@count Workflow executed transition",
* plural = "@count Workflow executed transitions",
* ),
* bundle_label = @Translation("Workflow type"),
* module = "workflow",
* handlers = {
......
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