You are here

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

1 call to ResourceFieldEntity::render()
ResourceFieldEntity::compoundDocumentId in src/Plugin/resource/Field/ResourceFieldEntity.php
Fetches the embedded identifier(s) for the current resource field, if any.

File

src/Plugin/resource/Field/ResourceFieldEntity.php, line 631
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldEntity

Class

ResourceFieldEntity
Class ResourceFieldEntity.

Namespace

Drupal\restful\Plugin\resource\Field

Code

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