4i: Add type condition in getAll() method

This commit is contained in:
Oliver Davies 2020-11-14 09:36:28 +00:00
parent 910af32309
commit 2cae42ba3a

View file

@ -13,7 +13,9 @@ class ArticleRepository {
} }
public function getAll(): array { public function getAll(): array {
return $this->nodeStorage->loadMultiple(); return $this->nodeStorage->loadByProperties([
'type' => 'article',
]);
} }
} }