function SchematicNormalizerHelperTrait::checkFormat

Same name and namespace in other branches
  1. 11.x core/modules/serialization/src/Normalizer/SchematicNormalizerHelperTrait.php \Drupal\serialization\Normalizer\SchematicNormalizerHelperTrait::checkFormat()

File

core/modules/serialization/src/Normalizer/SchematicNormalizerHelperTrait.php, line 42

Class

SchematicNormalizerHelperTrait
Methods for normalizing JSON schema.

Namespace

Drupal\serialization\Normalizer

Code

protected function checkFormat($format = NULL) {
  if ($format === 'json_schema') {
    return TRUE;
  }
  return parent::checkFormat($format);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.