You are here

protected function RestfulDataProviderDbQuery::addExtraInfoToQuery in RESTful 7

Adds query tags and metadata to the EntityFieldQuery.

Parameters

\SelectQuery $query: The query to enhance.

Overrides RestfulBase::addExtraInfoToQuery

2 calls to RestfulDataProviderDbQuery::addExtraInfoToQuery()
RestfulDataProviderDbQuery::getQueryCount in plugins/restful/RestfulDataProviderDbQuery.php
Prepare a query for RestfulEntityBase::getTotalCount().
RestfulDataProviderDbQuery::getQueryForList in plugins/restful/RestfulDataProviderDbQuery.php
Prepare a query for RestfulEntityBase::getList().

File

plugins/restful/RestfulDataProviderDbQuery.php, line 313
Contains \RestfulDataProviderDbQuery

Class

RestfulDataProviderDbQuery
@file Contains \RestfulDataProviderDbQuery

Code

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