public function ResourceFieldDbColumn::__construct in RESTful 7.2
Constructor.
Parameters
array $field: Contains the field values.
Throws
Overrides ResourceField::__construct
File
- src/
Plugin/ resource/ Field/ ResourceFieldDbColumn.php, line 30 - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldDbColumn.
Class
Namespace
Drupal\restful\Plugin\resource\FieldCode
public function __construct(array $field, RequestInterface $request) {
parent::__construct($field, $request);
$this->columnForQuery = empty($field['columnForQuery']) ? $this
->getProperty() : $field['columnForQuery'];
}