public function JsonBlueprintDenormalizer::denormalize in Subrequests 3.x
Same name and namespace in other branches
- 8.2 src/Normalizer/JsonBlueprintDenormalizer.php \Drupal\subrequests\Normalizer\JsonBlueprintDenormalizer::denormalize()
- 8 src/Normalizer/JsonBlueprintDenormalizer.php \Drupal\subrequests\Normalizer\JsonBlueprintDenormalizer::denormalize()
File
- src/
Normalizer/ JsonBlueprintDenormalizer.php, line 72
Class
- JsonBlueprintDenormalizer
- Denormalizer that builds the blueprint based on the incoming blueprint.
Namespace
Drupal\subrequests\NormalizerCode
public function denormalize($data, $class, $format = NULL, array $context = []) {
$this
->doValidateInput($data);
$data = array_map([
$this,
'fillDefaults',
], $data);
$subrequests = array_map(function ($item) {
return new Subrequest($item);
}, $data);
return $this
->buildExecutionSequence($subrequests);
}