protected function JSONFieldEnhancer::doTransform in JSON:API Extras 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/jsonapi/FieldEnhancer/JSONFieldEnhancer.php \Drupal\jsonapi_extras\Plugin\jsonapi\FieldEnhancer\JSONFieldEnhancer::doTransform()
File
- src/
Plugin/ jsonapi/ FieldEnhancer/ JSONFieldEnhancer.php, line 64
Class
- JSONFieldEnhancer
- Perform additional manipulations to JSON fields.
Namespace
Drupal\jsonapi_extras\Plugin\jsonapi\FieldEnhancerCode
protected function doTransform($data, Context $context) {
return $this->encoder
->encode($data);
}