Преглед на файлове

default base page sort contents by created date

bach преди 3 години
родител
ревизия
ed071a0472
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      web/modules/custom/materio_sapi/src/Controller/Base.php

+ 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();