You are here

public function JsonBlueprintDenormalizer::supportsDenormalization in Subrequests 8.2

Same name and namespace in other branches
  1. 8 src/Normalizer/JsonBlueprintDenormalizer.php \Drupal\subrequests\Normalizer\JsonBlueprintDenormalizer::supportsDenormalization()
  2. 3.x src/Normalizer/JsonBlueprintDenormalizer.php \Drupal\subrequests\Normalizer\JsonBlueprintDenormalizer::supportsDenormalization()

File

src/Normalizer/JsonBlueprintDenormalizer.php, line 84

Class

JsonBlueprintDenormalizer
Denormalizer that builds the blueprint based on the incoming blueprint.

Namespace

Drupal\subrequests\Normalizer

Code

public function supportsDenormalization($data, $type, $format = NULL) {
  return $format === 'json' && $type === SubrequestsTree::class && is_array($data) && !static::arrayIsKeyed($data);
}