TranslatorInterface
TranslatorInterface.php
:
19
Interface
Methods¶
supports()
¶
TranslatorInterface.php
:
21
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $context | mixed | - | - |
Return values
bool
translate()
¶
TranslatorInterface.php
:
33
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $context | mixed | - | - |
| $provider | TranslationProviderInterface | - | - |
| $sourceLanguage | string | - | - |
| $targetLanguage | string | - | - |
Return values
array<string, mixed>