new item to output

This commit is contained in:
Dan 2024-04-11 12:32:31 -04:00
parent 28f73f1971
commit 38039ed04b

View File

@ -35,7 +35,7 @@ public function getRecentFights() {
$query = $this->entityTypeManager->getStorage('node')->getQuery();
$query->accessCheck(TRUE);
$query->condition('type', 'fight')->sort('created', 'DESC');
$query->range(0, 13);
$query->range(0, 14);
$nids = $query->execute();
$all_fights = Node::loadMultiple($nids);
$fights = [];