Class

eZ\Publish\Core\Search\Elasticsearch\Content\Location\SortClauseVisitor\DateModified

class DateModified extends SortClauseVisitor

Visits the DateModified sort clause.

Methods

bool canVisit(SortClause $sortClause)

Check if visitor is applicable to current sort clause.

mixed visit(SortClause $sortClause)

Map field value to a proper Elasticsearch representation.

Details

at line 26
public bool canVisit(SortClause $sortClause)

Check if visitor is applicable to current sort clause.

Parameters

SortClause $sortClause

Return Value

bool

at line 38
public mixed visit(SortClause $sortClause)

Map field value to a proper Elasticsearch representation.

Parameters

SortClause $sortClause

Return Value

mixed Hash representation of Elasticsearch sort