You are here

protected function RestfulBase::addExtraInfoToQuery in RESTful 7

Adds query tags and metadata to the EntityFieldQuery.

Parameters

\EntityFieldQuery|\SelectQuery $query: The query to enhance.

1 call to RestfulBase::addExtraInfoToQuery()
RestfulDataProviderEFQ::addExtraInfoToQuery in plugins/restful/RestfulDataProviderEFQ.php
Adds query tags and metadata to the EntityFieldQuery.
2 methods override RestfulBase::addExtraInfoToQuery()
RestfulDataProviderDbQuery::addExtraInfoToQuery in plugins/restful/RestfulDataProviderDbQuery.php
Adds query tags and metadata to the EntityFieldQuery.
RestfulDataProviderEFQ::addExtraInfoToQuery in plugins/restful/RestfulDataProviderEFQ.php
Adds query tags and metadata to the EntityFieldQuery.

File

plugins/restful/RestfulBase.php, line 902
Contains RestfulBase.

Class

RestfulBase
Class \RestfulBase

Code

protected function addExtraInfoToQuery($query) {

  // Add a generic tags to the query.
  $query
    ->addTag('restful');
  $query
    ->addMetaData('account', $this
    ->getAccount());
}