public function RestfulDataProviderEFQ::getQueryForList in RESTful 7
Prepare a query for RestfulEntityBase::getList().
Return value
EntityFieldQuery The EntityFieldQuery object.
Overrides RestfulDataProviderEFQInterface::getQueryForList
4 calls to RestfulDataProviderEFQ::getQueryForList()
- RestfulEntityBaseMultipleBundles::getQueryForList in plugins/
restful/ RestfulEntityBaseMultipleBundles.php - Overrides RestfulEntityBase::getQueryForList().
- RestfulEntityBaseNode::getQueryForList in plugins/
restful/ RestfulEntityBaseNode.php - Overrides RestfulEntityBase::getQueryForList().
- RestfulEntityBaseUser::getQueryForList in plugins/
restful/ RestfulEntityBaseUser.php - Overrides \RestfulEntityBase::getQueryForList().
- RestfulExampleRoleResource::getQueryForList in modules/
restful_example/ plugins/ restful/ node/ per_role_content/ 1.0/ RestfulExampleRoleResource.class.php - Overrides \RestfulEntityBase::getQueryForList().
4 methods override RestfulDataProviderEFQ::getQueryForList()
- RestfulEntityBaseMultipleBundles::getQueryForList in plugins/
restful/ RestfulEntityBaseMultipleBundles.php - Overrides RestfulEntityBase::getQueryForList().
- RestfulEntityBaseNode::getQueryForList in plugins/
restful/ RestfulEntityBaseNode.php - Overrides RestfulEntityBase::getQueryForList().
- RestfulEntityBaseUser::getQueryForList in plugins/
restful/ RestfulEntityBaseUser.php - Overrides \RestfulEntityBase::getQueryForList().
- RestfulExampleRoleResource::getQueryForList in modules/
restful_example/ plugins/ restful/ node/ per_role_content/ 1.0/ RestfulExampleRoleResource.class.php - Overrides \RestfulEntityBase::getQueryForList().
File
- plugins/
restful/ RestfulDataProviderEFQ.php, line 105 - Contains \RestfulDataProviderEFQ
Class
- RestfulDataProviderEFQ
- @file Contains \RestfulDataProviderEFQ
Code
public function getQueryForList() {
$entity_type = $this
->getEntityType();
$query = $this
->getEntityFieldQuery();
if ($path = $this
->getPath()) {
$ids = explode(',', $path);
if (!empty($ids)) {
$query
->entityCondition('entity_id', $ids, 'IN');
}
}
$this
->queryForListSort($query);
$this
->queryForListFilter($query);
$this
->queryForListPagination($query);
$this
->addExtraInfoToQuery($query);
return $query;
}