Loading entitytools.info.yml +1 −1 Original line number Diff line number Diff line name: EntityTools type: module description: Provides entity tools. core_version_requirement: ^8.7.7 || ^9 core_version_requirement: ^8.7.7 || ^9 || ^10 entitytools.module +2 −1 Original line number Diff line number Diff line <?php use Drupal\Core\Entity\EntityInterface; /** * @file EntityTools module. */ Loading @@ -9,7 +10,7 @@ use Drupal\entitytools\EntityOriginalCache; /** * Implements hook_entity_presave(). */ function entitytools_entity_presave(Drupal\Core\Entity\EntityInterface $entity) { function entitytools_entity_presave(EntityInterface $entity) { // Ugly kitten massacre hack until we have // https://www.drupal.org/project/paragraphs/issues/3013961 EntityOriginalCache::preSave($entity); Loading tests/src/Functional/AdminPageTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ class AdminPageTest extends BrowserTestBase { public function testAdminPage() { $this->drupalLogin($this->rootUser); $this->drupalGet('admin'); $this->assertResponse(200); $this->assertSession()->statusCodeEquals(200); // Ensure that the test is not marked as risky because of no assertions. // see https://gitlab.com/weitzman/drupal-test-traits/-/commit/82bf5059908f9073b3468cb7313960da72176d9a Loading Loading
entitytools.info.yml +1 −1 Original line number Diff line number Diff line name: EntityTools type: module description: Provides entity tools. core_version_requirement: ^8.7.7 || ^9 core_version_requirement: ^8.7.7 || ^9 || ^10
entitytools.module +2 −1 Original line number Diff line number Diff line <?php use Drupal\Core\Entity\EntityInterface; /** * @file EntityTools module. */ Loading @@ -9,7 +10,7 @@ use Drupal\entitytools\EntityOriginalCache; /** * Implements hook_entity_presave(). */ function entitytools_entity_presave(Drupal\Core\Entity\EntityInterface $entity) { function entitytools_entity_presave(EntityInterface $entity) { // Ugly kitten massacre hack until we have // https://www.drupal.org/project/paragraphs/issues/3013961 EntityOriginalCache::preSave($entity); Loading
tests/src/Functional/AdminPageTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ class AdminPageTest extends BrowserTestBase { public function testAdminPage() { $this->drupalLogin($this->rootUser); $this->drupalGet('admin'); $this->assertResponse(200); $this->assertSession()->statusCodeEquals(200); // Ensure that the test is not marked as risky because of no assertions. // see https://gitlab.com/weitzman/drupal-test-traits/-/commit/82bf5059908f9073b3468cb7313960da72176d9a Loading