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
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
protected function getQuery() {
$table = $this
->getTableName();
return db_select($table)
->fields($table);
}