LabelBag

final class \TYPO3\CMS\Core\Localization\LabelBag

Table of Contents

Properties

$arguments  : array<int, string>
$key  : string

Methods

__construct()  : mixed
compile()  : string
Compiles the given label key and substituted label arguments if given.

Properties

$arguments read-only

public array<int, string> $arguments

Methods

__construct()

public __construct(string $key, string ...$arguments) : mixed

Parameters

$key : string

e.g. LLL:EXT:core/Resources/Private/Language/Labels.xlf:HelloWorld

$arguments : string

optional label arguments to be substituted

compile()

Compiles the given label key and substituted label arguments if given.

public compile(LanguageService $languageService) : string

Parameters

$languageService : LanguageService

Return values

string
On this page