You are here

public function JsonBlueprintDenormalizer::supportsDenormalization in Subrequests 8

Same name and namespace in other branches
  1. 8.2 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 73

Class

JsonBlueprintDenormalizer

Namespace

Drupal\subrequests\Normalizer

Code

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