4i: Ensure only articles are returned
Update the `getAll()` method on the article repository to only return article nodes.
This commit is contained in:
parent
e79a63476e
commit
76a19ff21b
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ class ArticleRepository {
|
|||
}
|
||||
|
||||
public function getAll(): array {
|
||||
return $this->nodeStorage->loadMultiple();
|
||||
return $this->nodeStorage->loadByProperties([
|
||||
'type' => 'article',
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue