5 next events on home page

This commit is contained in:
2018-04-25 16:08:46 +02:00
parent aebcee71b1
commit 7cbdba45da
@@ -78,7 +78,7 @@ class HomeController extends ControllerBase {
->condition('status', 1)
->condition('type', 'evenement')
->condition('field_date', $now->format(DATETIME_DATETIME_STORAGE_FORMAT), '>=')
->range(0,3)
->range(0,5)
->sort('field_date');
$events = $query->execute();