diff --git a/core/modules/block/src/Entity/Block.php b/core/modules/block/src/Entity/Block.php index a0bbd25..58386ab 100644 --- a/core/modules/block/src/Entity/Block.php +++ b/core/modules/block/src/Entity/Block.php @@ -17,6 +17,12 @@ * @ConfigEntityType( * id = "block", * label = @Translation("Block"), + * label_singular = @Translation("block"), + * label_plural = @Translation("blocks"), + * label_count = @PluralTranslation( + * singular = "@count block", + * plural = "@count blocks", + * ), * handlers = { * "access" = "Drupal\block\BlockAccessControlHandler", * "view_builder" = "Drupal\block\BlockViewBuilder", diff --git a/core/modules/filter/src/Entity/FilterFormat.php b/core/modules/filter/src/Entity/FilterFormat.php index c757512..5e9b996 100644 --- a/core/modules/filter/src/Entity/FilterFormat.php +++ b/core/modules/filter/src/Entity/FilterFormat.php @@ -16,6 +16,12 @@ * @ConfigEntityType( * id = "filter_format", * label = @Translation("Text format"), + * label_singular = @Translation("text format"), + * label_plural = @Translation("text formats"), + * label_count = @PluralTranslation( + * singular = "@count text format", + * plural = "@count text formats", + * ), * handlers = { * "form" = { * "add" = "Drupal\filter\FilterFormatAddForm", diff --git a/core/modules/rest/src/Entity/RestResourceConfig.php b/core/modules/rest/src/Entity/RestResourceConfig.php index 12bd846..57137d6 100644 --- a/core/modules/rest/src/Entity/RestResourceConfig.php +++ b/core/modules/rest/src/Entity/RestResourceConfig.php @@ -13,6 +13,12 @@ * @ConfigEntityType( * id = "rest_resource_config", * label = @Translation("REST resource configuration"), + * label_singular = @Translation("REST resource configuration"), + * label_plural = @Translation("REST resource configurations"), + * label_count = @PluralTranslation( + * singular = "@count REST resource configuration", + * plural = "@count REST resource configurations", + * ), * config_prefix = "resource", * admin_permission = "administer rest resources", * label_callback = "getLabelFromPlugin", diff --git a/core/modules/workflows/src/Entity/Workflow.php b/core/modules/workflows/src/Entity/Workflow.php index 2450fb7..3c7b06b 100644 --- a/core/modules/workflows/src/Entity/Workflow.php +++ b/core/modules/workflows/src/Entity/Workflow.php @@ -16,6 +16,12 @@ * id = "workflow", * label = @Translation("Workflow"), * label_collection = @Translation("Workflows"), + * label_singular = @Translation("workflow"), + * label_plural = @Translation("workflows"), + * label_count = @PluralTranslation( + * singular = "@count workflow", + * plural = "@count workflows", + * ), * handlers = { * "access" = "Drupal\workflows\WorkflowAccessControlHandler", * "list_builder" = "Drupal\workflows\WorkflowListBuilder",