/** * {@inheritdoc} */ public function normalize($object, $format = null, array $context = []) { return ['code' => $object->getCode(), 'sortOrder' => $object->getSortOrder(), 'attributes' => $this->attributeRepository->getAttributeCodesByGroup($object)] + $this->transNormalizer->normalize($object, $format, $context); }