class ConfigEntityNormalizer in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/serialization/src/Normalizer/ConfigEntityNormalizer.php \Drupal\serialization\Normalizer\ConfigEntityNormalizer
Normalizes/denormalizes Drupal config entity objects into an array structure.
Hierarchy
- class \Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer implements SerializerAwareInterface
- class \Drupal\serialization\Normalizer\NormalizerBase implements NormalizerInterface
- class \Drupal\serialization\Normalizer\ComplexDataNormalizer
- class \Drupal\serialization\Normalizer\EntityNormalizer implements DenormalizerInterface
- class \Drupal\serialization\Normalizer\ConfigEntityNormalizer
- class \Drupal\serialization\Normalizer\EntityNormalizer implements DenormalizerInterface
- class \Drupal\serialization\Normalizer\ComplexDataNormalizer
- class \Drupal\serialization\Normalizer\NormalizerBase implements NormalizerInterface
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\NormalizerView 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();
}
}