X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fmodules%2Fentity_test%2Fsrc%2FEntity%2FEntityTestRev.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fmodules%2Fentity_test%2Fsrc%2FEntity%2FEntityTestRev.php;h=e99505eed347a0b0110d20c6a59af5253c36cf10;hp=5aa3ae13d18008a8a791bc2d23733fbbc54d039d;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php b/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php index 5aa3ae13d..e99505eed 100644 --- a/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php +++ b/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php @@ -16,7 +16,8 @@ use Drupal\Core\Field\BaseFieldDefinition; * "view_builder" = "Drupal\entity_test\EntityTestViewBuilder", * "form" = { * "default" = "Drupal\entity_test\EntityTestForm", - * "delete" = "Drupal\entity_test\EntityTestDeleteForm" + * "delete" = "Drupal\entity_test\EntityTestDeleteForm", + * "delete-multiple-confirm" = "Drupal\Core\Entity\Form\DeleteMultipleForm" * }, * "view_builder" = "Drupal\entity_test\EntityTestViewBuilder", * "translation" = "Drupal\content_translation\ContentTranslationHandler", @@ -41,6 +42,7 @@ use Drupal\Core\Field\BaseFieldDefinition; * "add-form" = "/entity_test_rev/add", * "canonical" = "/entity_test_rev/manage/{entity_test_rev}", * "delete-form" = "/entity_test/delete/entity_test_rev/{entity_test_rev}", + * "delete-multiple-form" = "/entity_test_rev/delete_multiple", * "edit-form" = "/entity_test_rev/manage/{entity_test_rev}/edit", * "revision" = "/entity_test_rev/{entity_test_rev}/revision/{entity_test_rev_revision}/view", * } @@ -65,7 +67,7 @@ class EntityTestRev extends EntityTest { ->setCardinality(1) ->setReadOnly(TRUE); - return $fields + \Drupal::state()->get($entity_type->id() . '.additional_base_field_definitions', []); + return $fields; } }