Skip to content

ContentTranslatedName Sort Clause

The ContentTranslatedName Sort Clause sorts search results by the content items' translated names.

Arguments

  • (optional) sortDirection - Query or LocationQuery constant, either Query::SORT_ASC or Query::SORT_DESC

Limitations

The ContentTranslatedName Sort Clause isn't available in Repository filtering.

Example

1
2
3
4
5
use Ibexa\Contracts\Core\Repository\Values\Content\LocationQuery;
use Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause;

$query = new LocationQuery();
$query->sortClauses = [new SortClause\ContentTranslatedName()];