You are here

NullNormalizer.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/serialization/src/Normalizer/NullNormalizer.php

File

core/modules/serialization/src/Normalizer/NullNormalizer.php
View source
<?php

/**
 * @file
 * Contains \Drupal\serialization\Normalizer\NullNormalizer.
 */
namespace Drupal\serialization\Normalizer;


/**
 * Null normalizer.
 */
class NullNormalizer extends NormalizerBase {

  /**
   * Constructs a NullNormalizer object.
   *
   * @param string|array $supported_interface_of_class
   *   The supported interface(s) or class(es).
   */
  public function __construct($supported_interface_of_class) {
    $this->supportedInterfaceOrClass = $supported_interface_of_class;
  }

  /**
   * {@inheritdoc}
   */
  public function normalize($object, $format = NULL, array $context = array()) {
    return NULL;
  }

}

Classes

Namesort descending Description
NullNormalizer Null normalizer.