protected function DataProviderDbQuery::addExtraInfoToQuery in RESTful 7.2
Adds query tags and metadata to the EntityFieldQuery.
Parameters
\SelectQuery $query: The query to enhance.
Overrides DataProvider::addExtraInfoToQuery
2 calls to DataProviderDbQuery::addExtraInfoToQuery()
- DataProviderDbQuery::getQueryForList in src/
Plugin/ resource/ DataProvider/ DataProviderDbQuery.php - DataProviderDbQuery::view in src/
Plugin/ resource/ DataProvider/ DataProviderDbQuery.php - Read operation.
File
- src/
Plugin/ resource/ DataProvider/ DataProviderDbQuery.php, line 248 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderDbQuery.
Class
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
protected function addExtraInfoToQuery($query) {
$query
->addTag('restful');
$query
->addMetaData('account', $this
->getAccount());
$query
->addMetaData('restful_handler', $this);
}