You are here

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

DataProviderDbQuery

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

protected function addExtraInfoToQuery($query) {
  $query
    ->addTag('restful');
  $query
    ->addMetaData('account', $this
    ->getAccount());
  $query
    ->addMetaData('restful_handler', $this);
}