You are here

public function ResourceFieldResource::set in RESTful 7.2

Gets the value for the field given a data source.

Parameters

mixed $value: The value for the field.

DataInterpreterInterface $interpreter: The data source object. Interacts with the data storage.

Throws

IncompatibleFieldDefinitionException

Overrides ResourceFieldInterface::set

File

src/Plugin/resource/Field/ResourceFieldResource.php, line 172
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldResource.

Class

ResourceFieldResource

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function set($value, DataInterpreterInterface $interpreter) {
  $this->decorated
    ->set($value, $interpreter);
}