diff --git a/web/modules/custom/example/src/Repository/PostNodeRepository.php b/web/modules/custom/example/src/Repository/PostNodeRepository.php index 575312f..b8a8c8c 100644 --- a/web/modules/custom/example/src/Repository/PostNodeRepository.php +++ b/web/modules/custom/example/src/Repository/PostNodeRepository.php @@ -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 {