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