You are here

public function ResourceFieldInterface::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

3 methods override ResourceFieldInterface::set()
ResourceField::set in src/Plugin/resource/Field/ResourceField.php
Gets the value for the field given a data source.
ResourceFieldEntity::set in src/Plugin/resource/Field/ResourceFieldEntity.php
Gets the value for the field given a data source.
ResourceFieldResource::set in src/Plugin/resource/Field/ResourceFieldResource.php
Gets the value for the field given a data source.

File

src/Plugin/resource/Field/ResourceFieldInterface.php, line 208
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldInterface.

Class

ResourceFieldInterface

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function set($value, DataInterpreterInterface $interpreter);