protected function DataProviderEntity::getEntityFieldQuery in RESTful 7.2
Initialize an EntityFieldQuery (or extending class).
Return value
\EntityFieldQuery The initialized query with the basics filled in.
3 calls to DataProviderEntity::getEntityFieldQuery()
- DataProviderEntity::getEntityIdByFieldId in src/
Plugin/ resource/ DataProvider/ DataProviderEntity.php - Get the entity ID based on the ID provided in the request.
- DataProviderEntity::getQueryCount in src/
Plugin/ resource/ DataProvider/ DataProviderEntity.php - Prepare a query for RestfulEntityBase::count().
- DataProviderEntity::getQueryForList in src/
Plugin/ resource/ DataProvider/ DataProviderEntity.php - Prepare a query for RestfulEntityBase::getList().
File
- src/
Plugin/ resource/ DataProvider/ DataProviderEntity.php, line 478 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntity.
Class
- DataProviderEntity
- Class DataProviderEntity.
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
protected function getEntityFieldQuery() {
$query = $this
->EFQObject();
$entity_type = $this->entityType;
$query
->entityCondition('entity_type', $entity_type);
$entity_info = $this
->getEntityInfo();
if (!empty($this->bundles) && $entity_info['entity keys']['bundle']) {
$query
->entityCondition('bundle', $this->bundles, 'IN');
}
return $query;
}