You are here

public function JsonBlueprintDenormalizer::doValidateInput in Subrequests 3.x

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

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');
  }
}