You are here

abstract public function DateTimeEnhancerBase::postProcess in JSON:API Extras 8

Apply the last transformations to the output value of a single field.

Parameters

mixed $value: The value to be processed after being prepared for output.

Return value

mixed The value after being post processed.

Overrides ResourceFieldEnhancerInterface::postProcess

2 methods override DateTimeEnhancerBase::postProcess()
DateTimeEnhancer::postProcess in src/Plugin/jsonapi/FieldEnhancer/DateTimeEnhancer.php
Apply the last transformations to the output value of a single field.
DateTimeFromStringEnhancer::postProcess in src/Plugin/jsonapi/FieldEnhancer/DateTimeFromStringEnhancer.php
Apply the last transformations to the output value of a single field.

File

src/Plugin/DateTimeEnhancerBase.php, line 22

Class

DateTimeEnhancerBase
Base class for date and time based resourceFieldEnhancer plugins.

Namespace

Drupal\jsonapi_extras\Plugin

Code

public abstract function postProcess($value);