Prechádzať zdrojové kódy

default base page sort contents by created date

bach 3 rokov pred
rodič
commit
ed071a0472

+ 1 - 1
web/modules/custom/materio_sapi/src/Controller/Base.php

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