protected function DataProviderEntity::getQueryForList in RESTful 7.2
Prepare a query for RestfulEntityBase::getList().
Return value
\Drupal\restful\Util\EntityFieldQuery The EntityFieldQuery object.
2 calls to DataProviderEntity::getQueryForList()
- DataProviderComment::getQueryForList in modules/
restful_example/ src/ Plugin/ resource/ comment/ DataProviderComment.php - Overrides DataProviderEntity::getQueryForList().
- DataProviderNode::getQueryForList in src/
Plugin/ resource/ DataProvider/ DataProviderNode.php - Overrides DataProviderEntity::getQueryForList().
2 methods override DataProviderEntity::getQueryForList()
- DataProviderComment::getQueryForList in modules/
restful_example/ src/ Plugin/ resource/ comment/ DataProviderComment.php - Overrides DataProviderEntity::getQueryForList().
- DataProviderNode::getQueryForList in src/
Plugin/ resource/ DataProvider/ DataProviderNode.php - Overrides DataProviderEntity::getQueryForList().
File
- src/
Plugin/ resource/ DataProvider/ DataProviderEntity.php, line 518 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntity.
Class
- DataProviderEntity
- Class DataProviderEntity.
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
protected function getQueryForList() {
$query = $this
->getEntityFieldQuery();
// If we are trying to filter or sort on a computed field, just ignore it
// and log an exception.
try {
$this
->queryForListSort($query);
} catch (ServerConfigurationException $e) {
watchdog_exception('restful', $e);
}
try {
$this
->queryForListFilter($query);
} catch (ServerConfigurationException $e) {
watchdog_exception('restful', $e);
}
$this
->queryForListPagination($query);
$this
->addExtraInfoToQuery($query);
return $query;
}