Only load post nodes
This commit is contained in:
parent
3eb71026c1
commit
99d4311eb6
|
@ -19,6 +19,7 @@ final class PostNodeRepository {
|
|||
$nodeStorage = $this->entityTypeManager->getStorage('node');
|
||||
$nodes = $nodeStorage->loadByProperties([
|
||||
'status' => TRUE,
|
||||
'type' => 'post',
|
||||
]);
|
||||
|
||||
uasort($nodes, function (NodeInterface $a, NodeInterface $b): int {
|
||||
|
|
Loading…
Reference in a new issue