You are here

public function ResourceFieldEnhancerInterface::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.

3 methods override ResourceFieldEnhancerInterface::prepareForInput()
DateTimeEnhancerBase::prepareForInput in src/Plugin/DateTimeEnhancerBase.php
Apply the initial transformations to the input value of a single field.
SingleNestedEnhancer::prepareForInput in src/Plugin/jsonapi/FieldEnhancer/SingleNestedEnhancer.php
Apply the initial transformations to the input value of a single field.
UuidLinkEnhancer::prepareForInput in src/Plugin/jsonapi/FieldEnhancer/UuidLinkEnhancer.php
Apply the initial transformations to the input value of a single field.

File

src/Plugin/ResourceFieldEnhancerInterface.php, line 32

Class

ResourceFieldEnhancerInterface
Provides an interface defining a ResourceFieldEnhancer entity.

Namespace

Drupal\jsonapi_extras\Plugin

Code

public function prepareForInput($value);