You are here

public function JsonBlueprintDenormalizer::doValidateInput in Subrequests 8.2

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

Wraps validation in an assert to prevent execution in production.

See also

self::validateInput

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

File

src/Normalizer/JsonBlueprintDenormalizer.php, line 164

Class

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

Namespace

Drupal\subrequests\Normalizer

Code

public function doValidateInput($input) {
  if (PHP_MAJOR_VERSION >= 7 || assert_options(ASSERT_ACTIVE)) {
    assert($this
      ->validateInput($input), 'A Subrequests blueprint failed validation (see the logs for details). Please report this in the issue queue on drupal.org');
  }
}