Skip to content

Commit 518d67d

Browse files
authored
Support for drupal 9.4 (#723)
1 parent fd66553 commit 518d67d

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
# Should update the following as the minimum supported version from Drupal.org
3737
- "9.2.x"
3838
- "9.3.x"
39+
- "9.4.x"
3940
exclude:
4041
- php-version: "8.1"
4142
drupal-core: "9.2.x"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"drupal/drupal-extension": "master-dev",
2222
"drush/drush": "^9.0 || ^10.0",
2323
"mglaman/drupal-check": "1.3",
24-
"phpmd/phpmd": "2.8.2",
24+
"phpmd/phpmd": "^2.8.2",
2525
"phpmetrics/phpmetrics": "^2.5",
2626
"phpstan/phpstan": "^1.5"
2727
},

src/Entity/Storage/EdgeEntityStorageBase.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -335,15 +335,16 @@ final protected function processLoadedEntities(?array $ids, array $sdk_entities)
335335
protected function invokeStorageLoadHook(array &$entities) {
336336
if (!empty($entities)) {
337337
// Call hook_entity_storage_load().
338-
foreach ($this->moduleHandler()->getImplementations('entity_storage_load') as $module) {
339-
$function = $module . '_entity_storage_load';
340-
$function($entities, $this->entityTypeId);
341-
}
338+
$this->moduleHandler()->invokeAll(
339+
'entity_storage_load',
340+
[$entities, $this->entityTypeId]
341+
);
342+
342343
// Call hook_TYPE_storage_load().
343-
foreach ($this->moduleHandler()->getImplementations($this->entityTypeId . '_storage_load') as $module) {
344-
$function = $module . '_' . $this->entityTypeId . '_storage_load';
345-
$function($entities);
346-
}
344+
$this->moduleHandler()->invokeAll(
345+
$this->entityTypeId . '_storage_load',
346+
[$entities]
347+
);
347348
}
348349
}
349350

0 commit comments

Comments
 (0)