ConfigEntityNormalizer.php in Zircon Profile 8.0
Same filename and directory in other branches
Namespace
Drupal\serialization\NormalizerFile
core/modules/serialization/src/Normalizer/ConfigEntityNormalizer.phpView source
<?php
/**
* @file
* Contains \Drupal\serialization\Normalizer\ConfigEntityNormalizer.
*/
namespace Drupal\serialization\Normalizer;
/**
* Normalizes/denormalizes Drupal config entity objects into an array structure.
*/
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();
}
}
Classes
Name | Description |
---|---|
ConfigEntityNormalizer | Normalizes/denormalizes Drupal config entity objects into an array structure. |