public function JsonSubrequestDenormalizer::supportsDenormalization in Subrequests 3.x
Same name and namespace in other branches
- 8.2 src/Normalizer/JsonSubrequestDenormalizer.php \Drupal\subrequests\Normalizer\JsonSubrequestDenormalizer::supportsDenormalization()
- 8 src/Normalizer/JsonSubrequestDenormalizer.php \Drupal\subrequests\Normalizer\JsonSubrequestDenormalizer::supportsDenormalization()
Checks whether the given class is supported for denormalization by this normalizer.
Parameters
mixed $data: Data to denormalize from.
string $type: The class to which the data should be denormalized.
string $format: The format being deserialized from.
Return value
bool
File
- src/
Normalizer/ JsonSubrequestDenormalizer.php, line 82
Class
- JsonSubrequestDenormalizer
- Creates a request object for each Subrequest.
Namespace
Drupal\subrequests\NormalizerCode
public function supportsDenormalization($data, $type, $format = NULL) {
return $type === Request::class && $data instanceof Subrequest;
}