Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

MapNormalizer.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\MVC\Symfony\Component\Serializer;
8
9 use eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Map;
10 use Symfony\Component\Serializer\Normalizer\PropertyNormalizer;
11
12 final class MapNormalizer extends PropertyNormalizer
13 {
17 public function normalize($object, $format = null, array $context = [])
18 {
19 return [
20 'key' => $object->getMapKey(),
21 'map' => [],
22 'reverseMap' => [],
23 ];
24 }
25
26 public function supportsNormalization($data, $format = null)
27 {
28 return $data instanceof Map;
29 }
30 }
eZ\Publish\Core\MVC\Symfony\Component\Serializer\MapNormalizer
Definition: MapNormalizer.php:13
eZ\Publish\Core\MVC\Symfony\Component\Serializer\MapNormalizer\normalize
normalize($object, $format=null, array $context=[])
Definition: MapNormalizer.php:17
eZ\Publish\Core\MVC\Symfony\Component\Serializer\MapNormalizer\supportsNormalization
supportsNormalization($data, $format=null)
Definition: MapNormalizer.php:26
eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Map
Definition: Map.php:13
eZ\Publish\Core\MVC\Symfony\Component\Serializer
Definition: AbstractPropertyWhitelistNormalizer.php:7
eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Map
Definition: Map/Host.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.