You are here

public function ResourceFieldResource::value in RESTful 7.2

Gets the value for the field given a data source.

Parameters

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

Return value

mixed The value for the public field.

Throws

IncompatibleFieldDefinitionException

Overrides ResourceFieldInterface::value

1 call to ResourceFieldResource::value()
ResourceFieldResource::render in src/Plugin/resource/Field/ResourceFieldResource.php
Gets the value of a field and applies all process callbacks to it.

File

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

Class

ResourceFieldResource

Namespace

Drupal\restful\Plugin\resource\Field

Code

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