You are here

public function JsonSubrequestDenormalizer::supportsDenormalization in Subrequests 3.x

Same name and namespace in other branches
  1. 8.2 src/Normalizer/JsonSubrequestDenormalizer.php \Drupal\subrequests\Normalizer\JsonSubrequestDenormalizer::supportsDenormalization()
  2. 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\Normalizer

Code

public function supportsDenormalization($data, $type, $format = NULL) {
  return $type === Request::class && $data instanceof Subrequest;
}