LanguageNormalizerInterface
LanguageNormalizerInterface.php
:
17
Interface
Interface for normalizing language codes to provider-specific format.
Constants¶
SERVICE_TAG ¶
LanguageNormalizerInterface.php
:
20
Auto-configured by the bundle on every implementation. Order with #[AsTaggedItem(priority: …)].
|
|
|
Methods¶
normalize()
¶
LanguageNormalizerInterface.php
:
29
Normalizes a language code to the provider's expected format.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $provider | TranslationProviderInterface | - | - |
| $languageCode | string | - | - |
Return values
string
Tags
supports()
¶
LanguageNormalizerInterface.php
:
22
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $provider | TranslationProviderInterface | - | - |
Return values
bool