Skip to content

Commit

Permalink
Support for drupal 9.4 (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
phdhiren authored Jul 14, 2022
1 parent fd66553 commit 518d67d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
# Should update the following as the minimum supported version from Drupal.org
- "9.2.x"
- "9.3.x"
- "9.4.x"
exclude:
- php-version: "8.1"
drupal-core: "9.2.x"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"drupal/drupal-extension": "master-dev",
"drush/drush": "^9.0 || ^10.0",
"mglaman/drupal-check": "1.3",
"phpmd/phpmd": "2.8.2",
"phpmd/phpmd": "^2.8.2",
"phpmetrics/phpmetrics": "^2.5",
"phpstan/phpstan": "^1.5"
},
Expand Down
17 changes: 9 additions & 8 deletions src/Entity/Storage/EdgeEntityStorageBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,16 @@ final protected function processLoadedEntities(?array $ids, array $sdk_entities)
protected function invokeStorageLoadHook(array &$entities) {
if (!empty($entities)) {
// Call hook_entity_storage_load().
foreach ($this->moduleHandler()->getImplementations('entity_storage_load') as $module) {
$function = $module . '_entity_storage_load';
$function($entities, $this->entityTypeId);
}
$this->moduleHandler()->invokeAll(
'entity_storage_load',
[$entities, $this->entityTypeId]
);

// Call hook_TYPE_storage_load().
foreach ($this->moduleHandler()->getImplementations($this->entityTypeId . '_storage_load') as $module) {
$function = $module . '_' . $this->entityTypeId . '_storage_load';
$function($entities);
}
$this->moduleHandler()->invokeAll(
$this->entityTypeId . '_storage_load',
[$entities]
);
}
}

Expand Down

0 comments on commit 518d67d

Please sign in to comment.