You are here

public function ResourceFieldDbColumn::__construct in RESTful 7.2

Constructor.

Parameters

array $field: Contains the field values.

Throws

ServerConfigurationException

Overrides ResourceField::__construct

File

src/Plugin/resource/Field/ResourceFieldDbColumn.php, line 30
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldDbColumn.

Class

ResourceFieldDbColumn

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function __construct(array $field, RequestInterface $request) {
  parent::__construct($field, $request);
  $this->columnForQuery = empty($field['columnForQuery']) ? $this
    ->getProperty() : $field['columnForQuery'];
}