You are here

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

3 methods override ResourceFieldInterface::value()
ResourceField::value in src/Plugin/resource/Field/ResourceField.php
Gets the value for the field given a data source.
ResourceFieldEntity::value in src/Plugin/resource/Field/ResourceFieldEntity.php
Gets the value for the field given a data source.
ResourceFieldResource::value 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 136
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldInterface.

Class

ResourceFieldInterface

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function value(DataInterpreterInterface $interpreter);