소스 검색

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