LanguageLoader
LanguageLoader.php
:
21
Read-only
Final
Loads the languages given to MCP tools by code, failing with one message for every tool.
Tags
Methods¶
__construct()
¶
LanguageLoader.php
:
23
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageService | LanguageService | - | - |
getDefaultLanguageCode()
¶
LanguageLoader.php
:
91
Code of the default language of the current SiteAccess, the first of its configured languages.
|
|
|
Return values
string
load()
¶
LanguageLoader.php
:
32
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageCode | string | - | - |
| $argumentPath | string|null | null |
Path of the tool argument holding the code, e.g. "input.names", named in the message. |
Return values
Tags
loadEnabled()
¶
LanguageLoader.php
:
71
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageCode | string | - | - |
| $argumentPath | string|null | null |
Path of the tool argument holding the code, e.g. "languageCode", named in the message. |