abstract protected function EntityDenormalizerBase::prepareInput in JSON:API 8.2
Prepares the input data to create the entity.
Parameters
array $data: The input data to modify.
\Drupal\jsonapi\ResourceType\ResourceType $resource_type: Contains the info about the resource type.
string $format: Format the given data was extracted from.
array $context: Options available to the denormalizer.
Return value
array The modified input data.
1 call to EntityDenormalizerBase::prepareInput()
- EntityDenormalizerBase::denormalize in src/
Normalizer/ EntityDenormalizerBase.php - Denormalizes data back into an object of the given class.
2 methods override EntityDenormalizerBase::prepareInput()
- ConfigEntityDenormalizer::prepareInput in src/
Normalizer/ ConfigEntityDenormalizer.php - Prepares the input data to create the entity.
- ContentEntityDenormalizer::prepareInput in src/
Normalizer/ ContentEntityDenormalizer.php - Prepares the input data to create the entity.
File
- src/
Normalizer/ EntityDenormalizerBase.php, line 117
Class
- EntityDenormalizerBase
- Converts the Drupal entity object to a JSON:API array structure.
Namespace
Drupal\jsonapi\NormalizerCode
protected abstract function prepareInput(array $data, ResourceType $resource_type, $format, array $context);