new item to output
This commit is contained in:
parent
28f73f1971
commit
38039ed04b
@ -35,7 +35,7 @@ public function getRecentFights() {
|
|||||||
$query = $this->entityTypeManager->getStorage('node')->getQuery();
|
$query = $this->entityTypeManager->getStorage('node')->getQuery();
|
||||||
$query->accessCheck(TRUE);
|
$query->accessCheck(TRUE);
|
||||||
$query->condition('type', 'fight')->sort('created', 'DESC');
|
$query->condition('type', 'fight')->sort('created', 'DESC');
|
||||||
$query->range(0, 13);
|
$query->range(0, 14);
|
||||||
$nids = $query->execute();
|
$nids = $query->execute();
|
||||||
$all_fights = Node::loadMultiple($nids);
|
$all_fights = Node::loadMultiple($nids);
|
||||||
$fights = [];
|
$fights = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user