CloneableFinalInstantiable
Constants |
public Symfony\Component\Serializer\Normalizer\TranslatableNormalizer::NORMALIZATION_LOCALE_KEY = 'translatable_normalization_locale' |
Methods |
public __construct(Symfony\Contracts\Translation\TranslatorInterface $translator, array $defaultContext = []) |
public getSupportedTypes(?string $format) : array |
public normalize(?mixed $object, ?string $format = NULL, array $context = []) : string - throws \InvalidArgumentException
|
public supportsNormalization(?mixed $data, ?string $format = NULL, array $context = []) : bool |
Properties |
private array $defaultContext = ['translatable_normalization_locale' => NULL] |
private readonly Symfony\Contracts\Translation\TranslatorInterface $translator |