public function DataProviderDbQueryInterface::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.
1 method overrides DataProviderDbQueryInterface::isPrimaryField()
- DataProviderDbQuery::isPrimaryField in src/
Plugin/ resource/ DataProvider/ DataProviderDbQuery.php - Checks if the current field is the primary field.
File
- src/
Plugin/ resource/ DataProvider/ DataProviderDbQueryInterface.php, line 53 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderDbQueryInterface.
Class
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
public function isPrimaryField($field_name);