ProviderValidatorInterface
ProviderValidatorInterface.php
:
24
Interface
Provider-specific validator for translation input.
Allows each translation provider to define its own validation rules (e.g., max text length, language code format, supported languages).
Methods¶
validatePostNormalizationLanguageCode()
¶
ProviderValidatorInterface.php
:
45
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $provider | TranslationProviderInterface | - | - |
| $languageCode | string | - | - |
| $role | LanguageRole | - | - |
Tags
validatePreNormalizationLanguageCodeFormat()
¶
ProviderValidatorInterface.php
:
29
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageCode | string | - | - |
| $role | LanguageRole | - | - |
Tags
validateText()
¶
ProviderValidatorInterface.php
:
38
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $text | string | - | - |