You are here

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

Class

ResourceField

Namespace

Drupal\restful\Plugin\resource\Field

Code

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