4i: Add type condition in getAll() method
This commit is contained in:
parent
910af32309
commit
2cae42ba3a
|
@ -13,7 +13,9 @@ class ArticleRepository {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getAll(): array {
|
public function getAll(): array {
|
||||||
return $this->nodeStorage->loadMultiple();
|
return $this->nodeStorage->loadByProperties([
|
||||||
|
'type' => 'article',
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue