You are here

protected function DataProviderDbQuery::getQuery in RESTful 7.2

Get a basic query object.

Return value

\SelectQuery A new SelectQuery object for this connection.

2 calls to DataProviderDbQuery::getQuery()
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 475
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderDbQuery.

Class

DataProviderDbQuery

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

protected function getQuery() {
  $table = $this
    ->getTableName();
  return db_select($table)
    ->fields($table);
}