abstract public function DateTimeEnhancerBase::prepareForInput in JSON:API Extras 8
Apply the initial transformations to the input value of a single field.
Parameters
mixed $value: The value to be processed so it can be used as an input.
Return value
mixed The value after being post precessed.
Overrides ResourceFieldEnhancerInterface::prepareForInput
2 methods override DateTimeEnhancerBase::prepareForInput()
- DateTimeEnhancer::prepareForInput in src/
Plugin/ jsonapi/ FieldEnhancer/ DateTimeEnhancer.php - Apply the initial transformations to the input value of a single field.
- DateTimeFromStringEnhancer::prepareForInput in src/
Plugin/ jsonapi/ FieldEnhancer/ DateTimeFromStringEnhancer.php - Apply the initial transformations to the input value of a single field.
File
- src/
Plugin/ DateTimeEnhancerBase.php, line 27
Class
- DateTimeEnhancerBase
- Base class for date and time based resourceFieldEnhancer plugins.
Namespace
Drupal\jsonapi_extras\PluginCode
public abstract function prepareForInput($value);