You are here

NormalizerBase.php in Drupal 9

File

core/modules/hal/src/Normalizer/NormalizerBase.php
View source
<?php

namespace Drupal\hal\Normalizer;

use Drupal\serialization\Normalizer\NormalizerBase as SerializationNormalizerBase;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;

/**
 * Base class for Normalizers.
 */
abstract class NormalizerBase extends SerializationNormalizerBase implements DenormalizerInterface {

  /**
   * {@inheritdoc}
   */
  protected $format = [
    'hal_json',
  ];

}

Classes

Namesort descending Description
NormalizerBase Base class for Normalizers.