protected function DataProvider::addExtraInfoToQuery in RESTful 7.2
Adds query tags and metadata to the EntityFieldQuery.
Parameters
\EntityFieldQuery|\SelectQuery $query: The query to enhance.
1 call to DataProvider::addExtraInfoToQuery()
- DataProviderEntity::addExtraInfoToQuery in src/
Plugin/ resource/ DataProvider/ DataProviderEntity.php - Adds query tags and metadata to the EntityFieldQuery.
2 methods override DataProvider::addExtraInfoToQuery()
- DataProviderDbQuery::addExtraInfoToQuery in src/
Plugin/ resource/ DataProvider/ DataProviderDbQuery.php - Adds query tags and metadata to the EntityFieldQuery.
- DataProviderEntity::addExtraInfoToQuery in src/
Plugin/ resource/ DataProvider/ DataProviderEntity.php - Adds query tags and metadata to the EntityFieldQuery.
File
- src/
Plugin/ resource/ DataProvider/ DataProvider.php, line 447 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProvider.
Class
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
protected function addExtraInfoToQuery($query) {
// Add a generic tags to the query.
$query
->addTag('restful');
$query
->addMetaData('account', $this
->getAccount());
}