public function DataProviderDbQuery::setPrimary in RESTful 7.2
Sets the primary field.
Parameters
string $primary: The field name.
Overrides DataProviderDbQueryInterface::setPrimary
File
- src/
Plugin/ resource/ DataProvider/ DataProviderDbQuery.php, line 96 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderDbQuery.
Class
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
public function setPrimary($primary) {
$this->primary = $primary;
}