Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / modules / serialization / src / Normalizer / NullNormalizer.php
1 <?php
2
3 namespace Drupal\serialization\Normalizer;
4
5 /**
6  * Null normalizer.
7  */
8 class NullNormalizer extends NormalizerBase {
9
10   /**
11    * Constructs a NullNormalizer object.
12    *
13    * @param string|array $supported_interface_of_class
14    *   The supported interface(s) or class(es).
15    */
16   public function __construct($supported_interface_of_class) {
17     $this->supportedInterfaceOrClass = $supported_interface_of_class;
18   }
19
20   /**
21    * {@inheritdoc}
22    */
23   public function normalize($object, $format = NULL, array $context = []) {
24     return NULL;
25   }
26
27 }