You are here

public function ResourceField::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/ResourceField.php, line 77
Contains \Drupal\restful\Plugin\resource\ResourceField.

Class

ResourceField

Namespace

Drupal\restful\Plugin\resource\Field

Code

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

  // ResourceField only supports callbacks, so no set is possible.
}