You are here

protected function DataProviderDbQuery::getIdColumn in RESTful 7.2

Get ID column.

Return value

array An array with the name of the column(s) in the table to be used as the unique key.

8 calls to DataProviderDbQuery::getIdColumn()
DataProviderDbQuery::create in src/Plugin/resource/DataProvider/DataProviderDbQuery.php
Create operation.
DataProviderDbQuery::defaultSortInfo in src/Plugin/resource/DataProvider/DataProviderDbQuery.php
Defines default sort columns if none are provided via the request URL.
DataProviderDbQuery::getCacheFragments in src/Plugin/resource/DataProvider/DataProviderDbQuery.php
Gets the entity context.
DataProviderDbQuery::getIndexIds in src/Plugin/resource/DataProvider/DataProviderDbQuery.php
Returns the ID to render for the current index GET request.
DataProviderDbQuery::remove in src/Plugin/resource/DataProvider/DataProviderDbQuery.php
Delete operation.

... See full list

File

src/Plugin/resource/DataProvider/DataProviderDbQuery.php, line 152
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderDbQuery.

Class

DataProviderDbQuery

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

protected function getIdColumn() {
  return is_array($this->idColumn) ? $this->idColumn : array(
    $this->idColumn,
  );
}