diff --git a/core/modules/aggregator/src/Entity/Feed.php b/core/modules/aggregator/src/Entity/Feed.php index e27450c7a2a9e7e57c73ef4872f40da5eccdaeb1..1e332199456da5f66207469300321efdfae0b1e6 100644 --- a/core/modules/aggregator/src/Entity/Feed.php +++ b/core/modules/aggregator/src/Entity/Feed.php @@ -14,6 +14,13 @@ * @ContentEntityType( * id = "aggregator_feed", * label = @Translation("Aggregator feed"), + * label_collection = @Translation("Aggregator feeds"), + * label_singular = @Translation("aggregator feed"), + * label_plural = @Translation("aggregator feeds"), + * label_count = @PluralTranslation( + * singular = "@count aggregator feed", + * plural = "@count aggregator feeds", + * ), * handlers = { * "storage" = "Drupal\aggregator\FeedStorage", * "storage_schema" = "Drupal\aggregator\FeedStorageSchema", diff --git a/core/modules/aggregator/src/Entity/Item.php b/core/modules/aggregator/src/Entity/Item.php index ef0c6d245189ca7eb5a847ea835f4431d51cbbda..b637171da12f97cf9f41b85540131cbb51418077 100644 --- a/core/modules/aggregator/src/Entity/Item.php +++ b/core/modules/aggregator/src/Entity/Item.php @@ -16,6 +16,13 @@ * @ContentEntityType( * id = "aggregator_item", * label = @Translation("Aggregator feed item"), + * label_collection = @Translation("Aggregator feed items"), + * label_singular = @Translation("aggregator feed item"), + * label_plural = @Translation("aggregator feed items"), + * label_count = @PluralTranslation( + * singular = "@count aggregator feed item", + * plural = "@count aggregator feed items", + * ), * handlers = { * "storage" = "Drupal\aggregator\ItemStorage", * "storage_schema" = "Drupal\aggregator\ItemStorageSchema", diff --git a/core/modules/block/src/Entity/Block.php b/core/modules/block/src/Entity/Block.php index a0bbd25c889bad2953d2540c6531fedb2c864253..ece8de38abb9aed463573d3f48c67ce1e8998f08 100644 --- a/core/modules/block/src/Entity/Block.php +++ b/core/modules/block/src/Entity/Block.php @@ -17,6 +17,13 @@ * @ConfigEntityType( * id = "block", * label = @Translation("Block"), + * label_collection = @Translation("Blocks"), + * 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/block_content/src/Entity/BlockContent.php b/core/modules/block_content/src/Entity/BlockContent.php index 3c8858ff88d2fb88585161675c9556ce6554a353..7696da091e0368d786152855aa594228664ed698 100644 --- a/core/modules/block_content/src/Entity/BlockContent.php +++ b/core/modules/block_content/src/Entity/BlockContent.php @@ -15,6 +15,13 @@ * @ContentEntityType( * id = "block_content", * label = @Translation("Custom block"), + * label_collection = @Translation("Custom blocks"), + * label_singular = @Translation("custom block"), + * label_plural = @Translation("custom blocks"), + * label_count = @PluralTranslation( + * singular = "@count custom block", + * plural = "@count custom blocks", + * ), * bundle_label = @Translation("Custom block type"), * handlers = { * "storage" = "Drupal\Core\Entity\Sql\SqlContentEntityStorage", diff --git a/core/modules/block_content/src/Entity/BlockContentType.php b/core/modules/block_content/src/Entity/BlockContentType.php index 1b63edaa3b782340218cd1ab2bbcd8327f3700ad..20f9593b82f5a54cbcea5a7a644b88b8d83abc8f 100644 --- a/core/modules/block_content/src/Entity/BlockContentType.php +++ b/core/modules/block_content/src/Entity/BlockContentType.php @@ -11,6 +11,13 @@ * @ConfigEntityType( * id = "block_content_type", * label = @Translation("Custom block type"), + * label_collection = @Translation("Custom block types"), + * label_singular = @Translation("custom block type"), + * label_plural = @Translation("custom block types"), + * label_count = @PluralTranslation( + * singular = "@count custom block type", + * plural = "@count custom block types", + * ), * label_collection = @Translation("Custom block library"), * handlers = { * "form" = { diff --git a/core/modules/contact/src/Entity/ContactForm.php b/core/modules/contact/src/Entity/ContactForm.php index 00e5416bc81718a9b18190e97cadd9082a619e06..91364b04280f55f32b3417d589064abcb0281609 100644 --- a/core/modules/contact/src/Entity/ContactForm.php +++ b/core/modules/contact/src/Entity/ContactForm.php @@ -12,6 +12,13 @@ * @ConfigEntityType( * id = "contact_form", * label = @Translation("Contact form"), + * label_collection = @Translation("Contact forms"), + * label_singular = @Translation("contact form"), + * label_plural = @Translation("contact forms"), + * label_count = @PluralTranslation( + * singular = "@count contact form", + * plural = "@count contact forms", + * ), * handlers = { * "access" = "Drupal\contact\ContactFormAccessControlHandler", * "list_builder" = "Drupal\contact\ContactFormListBuilder", diff --git a/core/modules/contact/src/Entity/Message.php b/core/modules/contact/src/Entity/Message.php index b1086602d8f074a3665bb0b1d826e577a35b108f..f41d9f106f058b552a441ab2a1db877e301e3cdd 100644 --- a/core/modules/contact/src/Entity/Message.php +++ b/core/modules/contact/src/Entity/Message.php @@ -13,6 +13,13 @@ * @ContentEntityType( * id = "contact_message", * label = @Translation("Contact message"), + * label_collection = @Translation("Contact messages"), + * label_singular = @Translation("contact message"), + * label_plural = @Translation("contact messages"), + * label_count = @PluralTranslation( + * singular = "@count contact message", + * plural = "@count contact messages", + * ), * bundle_label = @Translation("Contact form"), * handlers = { * "access" = "Drupal\contact\ContactMessageAccessControlHandler", diff --git a/core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php b/core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php index 195718a6fe286ebc7298343085622eb2069cd2bd..96461ac07a14de06c5d5cbc211eae4ea69882a17 100644 --- a/core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php @@ -92,7 +92,7 @@ public function testNewWorkflow() { $session->fieldDisabled('type_settings[default_revision]'); $this->drupalGet('admin/config/workflow/workflows/manage/test/type/node'); - $session->pageTextContains('Select the content type entities for the Test workflow'); + $session->pageTextContains('Select the content types for the Test workflow'); foreach ($types as $type) { $session->pageTextContains($type->label()); } diff --git a/core/modules/editor/src/Entity/Editor.php b/core/modules/editor/src/Entity/Editor.php index 1a417d77a180bbd949440adbf82b85f54997d23f..07c9d24aa871bdcbc12effc59ac3d5fc6146f29f 100644 --- a/core/modules/editor/src/Entity/Editor.php +++ b/core/modules/editor/src/Entity/Editor.php @@ -11,6 +11,13 @@ * @ConfigEntityType( * id = "editor", * label = @Translation("Text Editor"), + * label_collection = @Translation("Text Editors"), + * label_singular = @Translation("text editor"), + * label_plural = @Translation("text editors"), + * label_count = @PluralTranslation( + * singular = "@count text editor", + * plural = "@count text editors", + * ), * handlers = { * "access" = "Drupal\editor\EditorAccessControlHandler", * }, diff --git a/core/modules/field/src/Entity/FieldConfig.php b/core/modules/field/src/Entity/FieldConfig.php index af17eee5b0ae0afbc0afad39a76b92e239211ca5..69be43c2b0c922a55b30386e466883cb89c21c8a 100644 --- a/core/modules/field/src/Entity/FieldConfig.php +++ b/core/modules/field/src/Entity/FieldConfig.php @@ -15,6 +15,13 @@ * @ConfigEntityType( * id = "field_config", * label = @Translation("Field"), + * label_collection = @Translation("Fields"), + * label_singular = @Translation("field"), + * label_plural = @Translation("fields"), + * label_count = @PluralTranslation( + * singular = "@count field", + * plural = "@count fields", + * ), * handlers = { * "access" = "Drupal\field\FieldConfigAccessControlHandler", * "storage" = "Drupal\field\FieldConfigStorage" diff --git a/core/modules/field/src/Entity/FieldStorageConfig.php b/core/modules/field/src/Entity/FieldStorageConfig.php index 6ae439ec5a4c321eb2b4009b39ad1ce852fdbb8d..4e8ad91380902ee62c32013eda5ddd5491499f14 100644 --- a/core/modules/field/src/Entity/FieldStorageConfig.php +++ b/core/modules/field/src/Entity/FieldStorageConfig.php @@ -18,6 +18,13 @@ * @ConfigEntityType( * id = "field_storage_config", * label = @Translation("Field storage"), + * label_collection = @Translation("Field storages"), + * label_singular = @Translation("field storage"), + * label_plural = @Translation("field storages"), + * label_count = @PluralTranslation( + * singular = "@count field storage", + * plural = "@count field storages", + * ), * handlers = { * "access" = "Drupal\field\FieldStorageConfigAccessControlHandler", * "storage" = "Drupal\field\FieldStorageConfigStorage" diff --git a/core/modules/file/src/Entity/File.php b/core/modules/file/src/Entity/File.php index 4060b773eed13db4ec5bb687f2160033c0551129..33f6d744cc2b36e980a6ea4588aad9d74c403aaa 100644 --- a/core/modules/file/src/Entity/File.php +++ b/core/modules/file/src/Entity/File.php @@ -18,6 +18,13 @@ * @ContentEntityType( * id = "file", * label = @Translation("File"), + * label_collection = @Translation("Files"), + * label_singular = @Translation("file"), + * label_plural = @Translation("files"), + * label_count = @PluralTranslation( + * singular = "@count file", + * plural = "@count files", + * ), * handlers = { * "storage" = "Drupal\file\FileStorage", * "storage_schema" = "Drupal\file\FileStorageSchema", diff --git a/core/modules/filter/src/Entity/FilterFormat.php b/core/modules/filter/src/Entity/FilterFormat.php index c757512c770469db29f9de67db3db39014bc1a3f..604ce01ac2f18028cbea4fcde8a735f58592179d 100644 --- a/core/modules/filter/src/Entity/FilterFormat.php +++ b/core/modules/filter/src/Entity/FilterFormat.php @@ -16,6 +16,13 @@ * @ConfigEntityType( * id = "filter_format", * label = @Translation("Text format"), + * label_collection = @Translation("Text formats"), + * 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/image/src/Entity/ImageStyle.php b/core/modules/image/src/Entity/ImageStyle.php index dd261248a78fe171d5513cc06229a9bcba694635..da00c7f7d297d5fd54acd64c3273425fb082467f 100644 --- a/core/modules/image/src/Entity/ImageStyle.php +++ b/core/modules/image/src/Entity/ImageStyle.php @@ -25,6 +25,13 @@ * @ConfigEntityType( * id = "image_style", * label = @Translation("Image style"), + * label_collection = @Translation("Image styles"), + * label_singular = @Translation("image style"), + * label_plural = @Translation("image styles"), + * label_count = @PluralTranslation( + * singular = "@count image style", + * plural = "@count image styles", + * ), * handlers = { * "form" = { * "add" = "Drupal\image\Form\ImageStyleAddForm", diff --git a/core/modules/language/src/Entity/ConfigurableLanguage.php b/core/modules/language/src/Entity/ConfigurableLanguage.php index 4fecde7707232b57982ed1a398533110b3a3d007..25c588050af963cca41b0f2d5136f47e15a4b18a 100644 --- a/core/modules/language/src/Entity/ConfigurableLanguage.php +++ b/core/modules/language/src/Entity/ConfigurableLanguage.php @@ -16,6 +16,13 @@ * @ConfigEntityType( * id = "configurable_language", * label = @Translation("Language"), + * label_collection = @Translation("Languages"), + * label_singular = @Translation("language"), + * label_plural = @Translation("languages"), + * label_count = @PluralTranslation( + * singular = "@count language", + * plural = "@count languages", + * ), * handlers = { * "list_builder" = "Drupal\language\LanguageListBuilder", * "access" = "Drupal\language\LanguageAccessControlHandler", diff --git a/core/modules/language/src/Entity/ContentLanguageSettings.php b/core/modules/language/src/Entity/ContentLanguageSettings.php index 87ebd21f44a0e015254522fa230b0543d3942ef1..0012e79994fdbc7ee70420c743bd28d5ebcff6a4 100644 --- a/core/modules/language/src/Entity/ContentLanguageSettings.php +++ b/core/modules/language/src/Entity/ContentLanguageSettings.php @@ -14,6 +14,13 @@ * @ConfigEntityType( * id = "language_content_settings", * label = @Translation("Content Language Settings"), + * label_collection = @Translation("Content Language Settings"), + * label_singular = @Translation("content language setting"), + * label_plural = @Translation("content languages settings"), + * label_count = @PluralTranslation( + * singular = "@count content language setting", + * plural = "@count content languages settings", + * ), * admin_permission = "administer languages", * config_prefix = "content_settings", * entity_keys = { diff --git a/core/modules/menu_link_content/src/Entity/MenuLinkContent.php b/core/modules/menu_link_content/src/Entity/MenuLinkContent.php index 460c0df0d4c7ff14ecb6b643f592b8424b91ce43..49235b928d271a5c2df572c7075005d9f5fc4c7f 100644 --- a/core/modules/menu_link_content/src/Entity/MenuLinkContent.php +++ b/core/modules/menu_link_content/src/Entity/MenuLinkContent.php @@ -19,6 +19,13 @@ * @ContentEntityType( * id = "menu_link_content", * label = @Translation("Custom menu link"), + * label_collection = @Translation("Custom menu links"), + * label_singular = @Translation("custom menu link"), + * label_plural = @Translation("custom menu links"), + * label_count = @PluralTranslation( + * singular = "@count custom menu link", + * plural = "@count custom menu links", + * ), * handlers = { * "storage" = "Drupal\Core\Entity\Sql\SqlContentEntityStorage", * "storage_schema" = "Drupal\menu_link_content\MenuLinkContentStorageSchema", diff --git a/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php b/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php index 72372afc2e869a73fda4bcbe2a3e90a3c25b947b..095de3306ed2a2e0003a0336ce3ede30564eb3ee 100644 --- a/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php +++ b/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php @@ -244,7 +244,7 @@ public function testUserSource() { ]; $migration = $this->migrationPluginManager->createStubMigration($this->migrationDefinition('content_entity:user')); $user_source = $this->sourcePluginManager->createInstance('content_entity:user', $configuration, $migration); - $this->assertSame('user entities', $user_source->__toString()); + $this->assertSame('users', $user_source->__toString()); $this->assertEquals(1, $user_source->count()); $ids = $user_source->getIds(); $this->assertArrayHasKey('langcode', $ids); @@ -279,7 +279,7 @@ public function testFileSource() { ]; $migration = $this->migrationPluginManager->createStubMigration($this->migrationDefinition('content_entity:file')); $file_source = $this->sourcePluginManager->createInstance('content_entity:file', $configuration, $migration); - $this->assertSame('file entities', $file_source->__toString()); + $this->assertSame('files', $file_source->__toString()); $this->assertEquals(1, $file_source->count()); $ids = $file_source->getIds(); $this->assertArrayHasKey('fid', $ids); @@ -395,7 +395,7 @@ public function testTermSource() { ]; $migration = $this->migrationPluginManager->createStubMigration($this->migrationDefinition('content_entity:taxonomy_term')); $term_source = $this->sourcePluginManager->createInstance('content_entity:taxonomy_term', $configuration, $migration); - $this->assertSame('taxonomy term entities', $term_source->__toString()); + $this->assertSame('taxonomy terms', $term_source->__toString()); $this->assertEquals(2, $term_source->count()); $ids = $term_source->getIds(); $this->assertArrayHasKey('langcode', $ids); diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php index 36925d2b84b59581e3b68146644389503277e04b..6cb10e4f9bd843d51a502c73ceba1a804efbbdee 100644 --- a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php +++ b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php @@ -121,7 +121,7 @@ public function testMigrateUpgradeExecute() { $this->drupalPostForm(NULL, $edits, t('Review upgrade')); $session->pageTextContains('WARNING: Content may be overwritten on your new site.'); $session->pageTextContains('There is conflicting content of these types:'); - $session->pageTextContains('file entities'); + $session->pageTextContains('files'); $session->pageTextContains('content item revisions'); $session->pageTextContains('There is translated content of these types:'); $session->pageTextContains('content items'); diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php index c09b7ca72332cede4197fab6735e87769dd14ed6..73158feef0785cbd53d44310755d085e389b2cc2 100644 --- a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php +++ b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php @@ -209,11 +209,11 @@ protected function assertReviewPage(WebAssert $session, array $all_available, ar protected function assertIdConflict(WebAssert $session) { $session->pageTextContains('WARNING: Content may be overwritten on your new site.'); $session->pageTextContains('There is conflicting content of these types:'); - $session->pageTextContains('custom block entities'); - $session->pageTextContains('custom menu link entities'); - $session->pageTextContains('file entities'); - $session->pageTextContains('taxonomy term entities'); - $session->pageTextContains('user entities'); + $session->pageTextContains('custom blocks'); + $session->pageTextContains('custom menu links'); + $session->pageTextContains('files'); + $session->pageTextContains('taxonomy terms'); + $session->pageTextContains('users'); $session->pageTextContains('comments'); $session->pageTextContains('content item revisions'); $session->pageTextContains('content items'); diff --git a/core/modules/node/src/Entity/NodeType.php b/core/modules/node/src/Entity/NodeType.php index e4a4c3b6c142abf7467fc215ab115a15d61426cf..6daa45dad9b5c29045432a3d8a561904af940310 100644 --- a/core/modules/node/src/Entity/NodeType.php +++ b/core/modules/node/src/Entity/NodeType.php @@ -12,6 +12,13 @@ * @ConfigEntityType( * id = "node_type", * label = @Translation("Content type"), + * label_collection = @Translation("Content types"), + * label_singular = @Translation("content type"), + * label_plural = @Translation("content types"), + * label_count = @PluralTranslation( + * singular = "@count content type", + * plural = "@count content types", + * ), * handlers = { * "access" = "Drupal\node\NodeTypeAccessControlHandler", * "form" = { diff --git a/core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php b/core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php index 5ad9d9530b648c499c03608ccfba6089dd703d42..0b4dfd752f982b2f85b8346edbdf393a8e70c1ef 100644 --- a/core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php +++ b/core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php @@ -12,6 +12,13 @@ * @ConfigEntityType( * id = "responsive_image_style", * label = @Translation("Responsive image style"), + * label_collection = @Translation("Responsive image styles"), + * label_singular = @Translation("responsive image style"), + * label_plural = @Translation("responsive image styles"), + * label_count = @PluralTranslation( + * singular = "@count responsive image style", + * plural = "@count responsive image styles", + * ), * handlers = { * "list_builder" = "Drupal\responsive_image\ResponsiveImageStyleListBuilder", * "form" = { diff --git a/core/modules/rest/src/Entity/RestResourceConfig.php b/core/modules/rest/src/Entity/RestResourceConfig.php index 12bd846ea6a6a136b552195ad3d42fc0be855b9d..47faa01e0d9e1e800e1c5eec2ffad1818cd2781f 100644 --- a/core/modules/rest/src/Entity/RestResourceConfig.php +++ b/core/modules/rest/src/Entity/RestResourceConfig.php @@ -13,6 +13,13 @@ * @ConfigEntityType( * id = "rest_resource_config", * label = @Translation("REST resource configuration"), + * label_collection = @Translation("REST resource configurations"), + * 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/search/src/Entity/SearchPage.php b/core/modules/search/src/Entity/SearchPage.php index 85ddc2608297423ef32210a2341e4c2600553200..94ae70df1f23889d36ccb42ba7d99edcc9b6c365 100644 --- a/core/modules/search/src/Entity/SearchPage.php +++ b/core/modules/search/src/Entity/SearchPage.php @@ -16,6 +16,13 @@ * @ConfigEntityType( * id = "search_page", * label = @Translation("Search page"), + * label_collection = @Translation("Search pages"), + * label_singular = @Translation("search page"), + * label_plural = @Translation("search pages"), + * label_count = @PluralTranslation( + * singular = "@count search page", + * plural = "@count search pages", + * ), * handlers = { * "access" = "Drupal\search\SearchPageAccessControlHandler", * "list_builder" = "Drupal\search\SearchPageListBuilder", diff --git a/core/modules/shortcut/src/Entity/Shortcut.php b/core/modules/shortcut/src/Entity/Shortcut.php index bba393acf16cfbfae1796528bb93d5859b152563..92e59fb53f1e5564e0af4ade0ad95180ea850e28 100644 --- a/core/modules/shortcut/src/Entity/Shortcut.php +++ b/core/modules/shortcut/src/Entity/Shortcut.php @@ -18,6 +18,13 @@ * @ContentEntityType( * id = "shortcut", * label = @Translation("Shortcut link"), + * label_collection = @Translation("Shortcut links"), + * label_singular = @Translation("shortcut link"), + * label_plural = @Translation("shortcut links"), + * label_count = @PluralTranslation( + * singular = "@count shortcut link", + * plural = "@count shortcut links", + * ), * bundle_label = @Translation("Shortcut set"), * handlers = { * "access" = "Drupal\shortcut\ShortcutAccessControlHandler", diff --git a/core/modules/shortcut/src/Entity/ShortcutSet.php b/core/modules/shortcut/src/Entity/ShortcutSet.php index 3d3815db7922f172b66b7e6c6e6deb764111dbae..819f6475dd533ca67dc7300f85560213c2f32e7f 100644 --- a/core/modules/shortcut/src/Entity/ShortcutSet.php +++ b/core/modules/shortcut/src/Entity/ShortcutSet.php @@ -12,6 +12,13 @@ * @ConfigEntityType( * id = "shortcut_set", * label = @Translation("Shortcut set"), + * label_collection = @Translation("Shortcut sets"), + * label_singular = @Translation("shortcut set"), + * label_plural = @Translation("shortcut sets"), + * label_count = @PluralTranslation( + * singular = "@count shortcut set", + * plural = "@count shortcut sets", + * ), * handlers = { * "storage" = "Drupal\shortcut\ShortcutSetStorage", * "access" = "Drupal\shortcut\ShortcutSetAccessControlHandler", diff --git a/core/modules/system/src/Entity/Action.php b/core/modules/system/src/Entity/Action.php index a4128384e2cf06b777b273c5f9d98d0e463c4266..964a64e97e84284ec42ce0bac6fb2a27ec12d1ad 100644 --- a/core/modules/system/src/Entity/Action.php +++ b/core/modules/system/src/Entity/Action.php @@ -15,6 +15,13 @@ * @ConfigEntityType( * id = "action", * label = @Translation("Action"), + * label_collection = @Translation("Actions"), + * label_singular = @Translation("action"), + * label_plural = @Translation("actions"), + * label_count = @PluralTranslation( + * singular = "@count action", + * plural = "@count actions", + * ), * admin_permission = "administer actions", * entity_keys = { * "id" = "id", diff --git a/core/modules/system/src/Entity/Menu.php b/core/modules/system/src/Entity/Menu.php index e7fbb47fbfc92cf7793e596c1d8a9c120b3e1ffa..9547d42da25405ccb159fddcb6ceabdcac685e8a 100644 --- a/core/modules/system/src/Entity/Menu.php +++ b/core/modules/system/src/Entity/Menu.php @@ -11,6 +11,13 @@ * @ConfigEntityType( * id = "menu", * label = @Translation("Menu"), + * label_collection = @Translation("Menus"), + * label_singular = @Translation("menu"), + * label_plural = @Translation("menus"), + * label_count = @PluralTranslation( + * singular = "@count menu", + * plural = "@count menus", + * ), * handlers = { * "access" = "Drupal\system\MenuAccessControlHandler" * }, diff --git a/core/modules/system/tests/src/Functional/Module/PrepareUninstallTest.php b/core/modules/system/tests/src/Functional/Module/PrepareUninstallTest.php index 86d06e35eef533fce38b1b20e3f08ad8b75431b7..cf577709728e86708029ed5a50d6277e2867df57 100644 --- a/core/modules/system/tests/src/Functional/Module/PrepareUninstallTest.php +++ b/core/modules/system/tests/src/Functional/Module/PrepareUninstallTest.php @@ -78,15 +78,15 @@ public function testUninstall() { $this->assertText($this->terms[$term_count - $i]->label()); } $term_count = $term_count - 10; - $this->assertText("And $term_count more taxonomy term entities."); + $this->assertText("And $term_count more taxonomy terms."); $this->assertText('This action cannot be undone.'); $this->assertText('Make a backup of your database if you want to be able to restore these items.'); - $this->drupalPostForm(NULL, [], t('Delete all taxonomy term entities')); + $this->drupalPostForm(NULL, [], t('Delete all taxonomy terms')); // Check that we are redirected to the uninstall page and data has been // removed. $this->assertUrl('admin/modules/uninstall', []); - $this->assertText('All taxonomy term entities have been deleted.'); + $this->assertText('All taxonomy terms have been deleted.'); // Check that there is no more data to be deleted, Taxonomy is ready to be // uninstalled. diff --git a/core/modules/taxonomy/src/Entity/Term.php b/core/modules/taxonomy/src/Entity/Term.php index 66ef3f1d725d6cd7d1223a70d923b5aab27bf22c..51e295a5177fc21a6b06d45a4501c83a2e8c8807 100644 --- a/core/modules/taxonomy/src/Entity/Term.php +++ b/core/modules/taxonomy/src/Entity/Term.php @@ -15,6 +15,13 @@ * @ContentEntityType( * id = "taxonomy_term", * label = @Translation("Taxonomy term"), + * label_collection = @Translation("Taxonomy terms"), + * label_singular = @Translation("taxonomy term"), + * label_plural = @Translation("taxonomy terms"), + * label_count = @PluralTranslation( + * singular = "@count taxonomy term", + * plural = "@count taxonomy terms", + * ), * bundle_label = @Translation("Vocabulary"), * handlers = { * "storage" = "Drupal\taxonomy\TermStorage", diff --git a/core/modules/tour/src/Entity/Tour.php b/core/modules/tour/src/Entity/Tour.php index 9a8e1666ac9630408cbda578d52935965a65a578..feca0585b010e35b056dc584000ae3be98b9b1c5 100644 --- a/core/modules/tour/src/Entity/Tour.php +++ b/core/modules/tour/src/Entity/Tour.php @@ -12,6 +12,13 @@ * @ConfigEntityType( * id = "tour", * label = @Translation("Tour"), + * label_collection = @Translation("Tours"), + * label_singular = @Translation("tour"), + * label_plural = @Translation("tours"), + * label_count = @PluralTranslation( + * singular = "@count tour", + * plural = "@count tours", + * ), * handlers = { * "view_builder" = "Drupal\tour\TourViewBuilder", * "access" = "Drupal\tour\TourAccessControlHandler", diff --git a/core/modules/user/src/Entity/Role.php b/core/modules/user/src/Entity/Role.php index 0226f94b781406ac1fc83cb7903b22804a8feaee..3512fee03e45f9cf33e6e8a4f305e6bed5242b8b 100644 --- a/core/modules/user/src/Entity/Role.php +++ b/core/modules/user/src/Entity/Role.php @@ -12,6 +12,13 @@ * @ConfigEntityType( * id = "user_role", * label = @Translation("Role"), + * label_collection = @Translation("Roles"), + * label_singular = @Translation("role"), + * label_plural = @Translation("roles"), + * label_count = @PluralTranslation( + * singular = "@count role", + * plural = "@count roles", + * ), * handlers = { * "storage" = "Drupal\user\RoleStorage", * "access" = "Drupal\user\RoleAccessControlHandler", diff --git a/core/modules/user/src/Entity/User.php b/core/modules/user/src/Entity/User.php index 54439cff9323894dc98e05655ea5043d58a5766b..979819fc8cdfb935bf6f9c6f51ec5350a97887e3 100644 --- a/core/modules/user/src/Entity/User.php +++ b/core/modules/user/src/Entity/User.php @@ -22,6 +22,13 @@ * @ContentEntityType( * id = "user", * label = @Translation("User"), + * label_collection = @Translation("Users"), + * label_singular = @Translation("user"), + * label_plural = @Translation("users"), + * label_count = @PluralTranslation( + * singular = "@count user", + * plural = "@count users", + * ), * handlers = { * "storage" = "Drupal\user\UserStorage", * "storage_schema" = "Drupal\user\UserStorageSchema", diff --git a/core/modules/views/src/Entity/View.php b/core/modules/views/src/Entity/View.php index 44007eb7fc60b4cc12470c93ceba11fcd4f0fed8..3877cc29211edcedb02faa2d9f147701edb70c1d 100644 --- a/core/modules/views/src/Entity/View.php +++ b/core/modules/views/src/Entity/View.php @@ -19,6 +19,14 @@ * @ConfigEntityType( * id = "view", * label = @Translation("View", context = "View entity type"), + * label_collection = @Translation("Views", context = "View entity type"), + * label_singular = @Translation("view", context = "View entity type"), + * label_plural = @Translation("views", context = "View entity type"), + * label_count = @PluralTranslation( + * singular = "@count view", + * plural = "@count views", + * context = "View entity type", + * ), * admin_permission = "administer views", * entity_keys = { * "id" = "id", diff --git a/core/modules/workflows/src/Entity/Workflow.php b/core/modules/workflows/src/Entity/Workflow.php index 2450fb78473d53ba7eeec5db3134e4ccf76f4605..3c7b06bcc98b32619f33106abb7f34906a144141 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",