You are here

class ConfigEntityNormalizer in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/serialization/src/Normalizer/ConfigEntityNormalizer.php \Drupal\serialization\Normalizer\ConfigEntityNormalizer

Normalizes/denormalizes Drupal config entity objects into an array structure.

Hierarchy

Expanded class hierarchy of ConfigEntityNormalizer

1 file declares its use of ConfigEntityNormalizer
ConfigEntityNormalizerTest.php in core/modules/serialization/tests/src/Unit/Normalizer/ConfigEntityNormalizerTest.php
Contains \Drupal\Tests\serialization\Unit\Normalizer\ConfigEntityNormalizerTest.
1 string reference to 'ConfigEntityNormalizer'
serialization.services.yml in core/modules/serialization/serialization.services.yml
core/modules/serialization/serialization.services.yml
1 service uses ConfigEntityNormalizer
serializer.normalizer.config_entity in core/modules/serialization/serialization.services.yml
Drupal\serialization\Normalizer\ConfigEntityNormalizer

File

core/modules/serialization/src/Normalizer/ConfigEntityNormalizer.php, line 13
Contains \Drupal\serialization\Normalizer\ConfigEntityNormalizer.

Namespace

Drupal\serialization\Normalizer
View source
class ConfigEntityNormalizer extends EntityNormalizer {

  /**
   * The interface or class that this Normalizer supports.
   *
   * @var array
   */
  protected $supportedInterfaceOrClass = array(
    'Drupal\\Core\\Config\\Entity\\ConfigEntityInterface',
  );

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

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigEntityNormalizer::$supportedInterfaceOrClass protected property The interface or class that this Normalizer supports. Overrides EntityNormalizer::$supportedInterfaceOrClass
ConfigEntityNormalizer::normalize public function Normalizes an object into a set of arrays/scalars. Overrides ComplexDataNormalizer::normalize
EntityNormalizer::$entityManager protected property The entity manager.
EntityNormalizer::denormalize public function Denormalizes data back into an object of the given class. Overrides DenormalizerInterface::denormalize
EntityNormalizer::__construct public function Constructs an EntityNormalizer object.
NormalizerBase::checkFormat protected function Checks if the provided format is supported by this normalizer.
NormalizerBase::supportsDenormalization public function Implements \Symfony\Component\Serializer\Normalizer\DenormalizerInterface::supportsDenormalization() 1
NormalizerBase::supportsNormalization public function Checks whether the given class is supported for normalization by this normalizer. Overrides NormalizerInterface::supportsNormalization 1
SerializerAwareNormalizer::$serializer protected property
SerializerAwareNormalizer::setSerializer public function Sets the owning Serializer object. Overrides SerializerAwareInterface::setSerializer