SearchApiSortsTestEntityQuery.php in Search API sorts 8
File
tests/search_api_sorts_test_entity/src/Entity/SearchApiSortsTestEntityQuery.php
View source
<?php
namespace Drupal\search_api_sorts_test_entity\Entity;
use Drupal\Core\Config\Entity\Query\Query;
class SearchApiSortsTestEntityQuery extends Query {
public function getRecords() {
$this
->condition('display_id', 'views_page---search_api_sorts_test_view__page_1', 'IN');
$this
->condition('status', TRUE, 'IN');
return $this
->loadRecords();
}
}