You are here

protected function JSONFieldEnhancer::doTransform in JSON:API Extras 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/jsonapi/FieldEnhancer/JSONFieldEnhancer.php \Drupal\jsonapi_extras\Plugin\jsonapi\FieldEnhancer\JSONFieldEnhancer::doTransform()

File

src/Plugin/jsonapi/FieldEnhancer/JSONFieldEnhancer.php, line 70

Class

JSONFieldEnhancer
Perform additional manipulations to JSON fields.

Namespace

Drupal\jsonapi_extras\Plugin\jsonapi\FieldEnhancer

Code

protected function doTransform($data, Context $context) {
  return $this->encoder
    ->encode($data);
}