You are here

public function DataProviderDbQuery::isPrimaryField in RESTful 7.2

Checks if the current field is the primary field.

Parameters

string $field_name: The column name to check.

Return value

bool TRUE if it is the primary field, FALSE otherwise.

Overrides DataProviderDbQueryInterface::isPrimaryField

2 calls to DataProviderDbQuery::isPrimaryField()
DataProviderDbQuery::create in src/Plugin/resource/DataProvider/DataProviderDbQuery.php
Create operation.
DataProviderDbQuery::update in src/Plugin/resource/DataProvider/DataProviderDbQuery.php
Update operation.

File

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

Class

DataProviderDbQuery

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function isPrimaryField($field_name) {
  return $this->primary == $field_name;
}