DefaultProviderValidator
DefaultProviderValidator.php
:
18
Read-only
Final
Implements
ProviderValidatorInterface
Methods¶
__construct()
¶
DefaultProviderValidator.php
:
23
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $maxTextLengthBytes | int | DefaultProviderValidator::DEFAULT_MAX_TEXT_LENGTH_BYTES | - |
| $inputLanguageCodeFormatPattern | string | DefaultProviderValidator::DEFAULT_LANGUAGE_CODE_FORMAT | - |
| $outputLanguageCodeFormatPattern | string | DefaultProviderValidator::DEFAULT_LANGUAGE_CODE_FORMAT | - |
validatePostNormalizationLanguageCode()
¶
DefaultProviderValidator.php
:
49
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $provider | TranslationProviderInterface | - | - |
| $languageCode | string | - | - |
| $role | LanguageRole | - | - |
validatePreNormalizationLanguageCodeFormat()
¶
DefaultProviderValidator.php
:
65
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageCode | string | - | - |
| $role | LanguageRole | - | - |
validateText()
¶
DefaultProviderValidator.php
:
35
Validates that text is not empty and does not exceed maximum length.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $text | string | - | - |