You are here

public static function Parser::isValidSubrequest in Subrequests 8

Validates if a request can be constituted from this payload.

Parameters

array $data: The user data representing a sub-request.

Return value

bool TRUE if the data is valid. FALSE otherwise.

1 call to Parser::isValidSubrequest()
JsonSubrequestDenormalizer::denormalize in src/Normalizer/JsonSubrequestDenormalizer.php
Denormalizes data back into an object of the given class.

File

src/Blueprint/Parser.php, line 107

Class

Parser
TODO: Change this comment. We'll use the serializer instead. Base class for blueprint parsers. There may be slightly different blueprint formats depending on the encoding. For instance, JSON encoded blueprints will reference other properties in…

Namespace

Drupal\subrequests\Blueprint

Code

public static function isValidSubrequest(array $data) {

  // TODO: Implement this!
  return (bool) $data;
}