Skip to content

Commit 3d521d7

Browse files
Niklanmglaman
andauthored
Add more specific typehint for EntityStorageInterface::loadMultiple() (#827)
* Add more specific typehint for EntityStorageInterface::loadMultiple() * Add stub for ::resetCache() as well. * Add return type for reset cache and make both method with explicit typehints --------- Co-authored-by: Matt Glaman <[email protected]>
1 parent a461737 commit 3d521d7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

stubs/Drupal/Core/Entity/EntityStorageInterface.stub

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,15 @@ namespace Drupal\Core\Entity;
44

55
interface EntityStorageInterface {
66

7+
/**
8+
* @param array<int|string>|null $ids
9+
* @return \Drupal\Core\Entity\EntityInterface[]
10+
*/
11+
public function loadMultiple(?array $ids = NULL): array;
12+
13+
/**
14+
* @param array<int|string>|null $ids
15+
*/
16+
public function resetCache(?array $ids = NULL): void;
17+
718
}

0 commit comments

Comments
 (0)