You are here

public function ResourceFieldResource::render in RESTful 7.2

Gets the value of a field and applies all process callbacks to it.

Parameters

DataInterpreterInterface $interpreter: The data interpreter.

Return value

mixed The value to render.

Overrides ResourceFieldInterface::render

File

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

Class

ResourceFieldResource

Namespace

Drupal\restful\Plugin\resource\Field

Code

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