default base page sort contents by created date

This commit is contained in:
Bachir Soussi Chiadmi 2021-08-24 23:46:44 +02:00
parent 01e0bbfc09
commit ed071a0472
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class Base extends ControllerBase {
->condition('langcode', $lang) ->condition('langcode', $lang)
->range($this->offset, $this->limit) ->range($this->offset, $this->limit)
->accessCheck(TRUE) ->accessCheck(TRUE)
->sort('changed', 'DESC'); ->sort('created', 'DESC');
// ->condition('field_example', 'test_value') // ->condition('field_example', 'test_value')
$this->results = $this->query->execute(); $this->results = $this->query->execute();