Issue #3225395 by Anul, joachim: Repeated entity type labels in entity_test module

merge-requests/3144/merge
catch 2023-02-13 13:01:18 +00:00
parent ce28a42738
commit 31301fa2ad
6 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ use Drupal\Core\Field\BaseFieldDefinition;
*
* @ContentEntityType(
* id = "entity_test_field_methods",
* label = @Translation("Test entity - data table"),
* label = @Translation("Test entity - field methods and data table"),
* handlers = {
* "view_builder" = "Drupal\entity_test\EntityTestViewBuilder",
* "access" = "Drupal\entity_test\EntityTestAccessControlHandler",

View File

@ -12,7 +12,7 @@ use Drupal\Core\Field\BaseFieldDefinition;
*
* @ContentEntityType(
* id = "entity_test_mul_changed",
* label = @Translation("Test entity - data table"),
* label = @Translation("Test entity - multiple changed and data table"),
* handlers = {
* "view_builder" = "Drupal\entity_test\EntityTestViewBuilder",
* "access" = "Drupal\entity_test\EntityTestAccessControlHandler",

View File

@ -10,7 +10,7 @@ use Drupal\Core\Field\BaseFieldDefinition;
*
* @ContentEntityType(
* id = "entity_test_mul_default_value",
* label = @Translation("Test entity - data table"),
* label = @Translation("Test entity - multiple default value and data table"),
* handlers = {
* "view_builder" = "Drupal\entity_test\EntityTestViewBuilder",
* "access" = "Drupal\entity_test\EntityTestAccessControlHandler",

View File

@ -10,7 +10,7 @@ use Drupal\Core\Field\BaseFieldDefinition;
*
* @ContentEntityType(
* id = "entity_test_mulrev",
* label = @Translation("Test entity - revisions and data table"),
* label = @Translation("Test entity - mul revisions and data table"),
* handlers = {
* "view_builder" = "Drupal\entity_test\EntityTestViewBuilder",
* "access" = "Drupal\entity_test\EntityTestAccessControlHandler",

View File

@ -10,7 +10,7 @@ use Drupal\Core\Field\BaseFieldDefinition;
*
* @ContentEntityType(
* id = "entity_test_mulrev_changed",
* label = @Translation("Test entity - revisions and data table"),
* label = @Translation("Test entity - mul changed revisions and data table"),
* handlers = {
* "view_builder" = "Drupal\entity_test\EntityTestViewBuilder",
* "access" = "Drupal\entity_test\EntityTestAccessControlHandler",

View File

@ -35,7 +35,7 @@ class SaveActionTest extends KernelTestBase {
]);
$this->assertEquals([
'type' => 'entity_test_mul_changed',
'label' => 'Save test entity - data table',
'label' => 'Save test entity - multiple changed and data table',
'action_label' => 'Save',
], $definitions['entity_test_mul_changed']);
}