Issue #3225395 by Anul, joachim: Repeated entity type labels in entity_test module
parent
ce28a42738
commit
31301fa2ad
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue