3 namespace Drupal\serialization\Normalizer;
6 * Normalizes/denormalizes Drupal config entity objects into an array structure.
8 class ConfigEntityNormalizer extends EntityNormalizer {
11 * The interface or class that this Normalizer supports.
15 protected $supportedInterfaceOrClass = ['Drupal\Core\Config\Entity\ConfigEntityInterface'];
20 public function normalize($object, $format = NULL, array $context = []) {
21 return $object->toArray();