function NullNormalizer::__construct

Same name in other branches
  1. 8.9.x core/modules/serialization/src/Normalizer/NullNormalizer.php \Drupal\serialization\Normalizer\NullNormalizer::__construct()
  2. 10 core/modules/serialization/src/Normalizer/NullNormalizer.php \Drupal\serialization\Normalizer\NullNormalizer::__construct()
  3. 11.x core/modules/serialization/src/Normalizer/NullNormalizer.php \Drupal\serialization\Normalizer\NullNormalizer::__construct()

Constructs a NullNormalizer object.

Parameters

string|array $supported_interface_of_class: The supported interface(s) or class(es).

File

core/modules/serialization/src/Normalizer/NullNormalizer.php, line 16

Class

NullNormalizer
Null normalizer.

Namespace

Drupal\serialization\Normalizer

Code

public function __construct($supported_interface_of_class) {
    $this->supportedInterfaceOrClass = $supported_interface_of_class;
}

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