You are here

JsonNormalizerBase.php in Schemata 8

File

schemata_json_schema/src/Normalizer/json/JsonNormalizerBase.php
View source
<?php

namespace Drupal\schemata_json_schema\Normalizer\json;

use Drupal\schemata\Normalizer\NormalizerBase;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;

/**
 * Base class for JSON Schema Normalizers.
 */
abstract class JsonNormalizerBase extends NormalizerBase implements DenormalizerInterface {

  /**
   * The formats that the Normalizer can handle.
   *
   * @var array
   */
  protected $format = 'schema_json';

  /**
   * The formats that the Normalizer can handle.
   *
   * @var array
   */
  protected $describedFormat = 'json';

}

Classes

Namesort descending Description
JsonNormalizerBase Base class for JSON Schema Normalizers.