You are here

public function ResourceFieldEntityAlterableInterface::alterSortEntityFieldQuery in RESTful 7.2

Alter the list query to add the sorting for this field.

Parameters

array $sort: The sort array definition.

\EntityFieldQuery $query: The entity field query to modify.

Return value

array The modified $sort array.

File

src/Plugin/resource/Field/ResourceFieldEntityAlterableInterface.php, line 41
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldFilterableInterface.

Class

ResourceFieldEntityAlterableInterface
Class ResourceFieldFilterableInterface.

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function alterSortEntityFieldQuery(array $sort, \EntityFieldQuery $query);