BeforeLabelResourceResolvedEvent

final class \TYPO3\CMS\Core\Localization\Event\BeforeLabelResourceResolvedEvent

Event that is fired after a file name has been mapped to a translation domain for all files of a package.

E.g. "vendor/myext.messages" is mapped to "EXT:myext/Resources/Private/Language/locallang.xlf"

If you want this file to be a different location, e.g. for historical reasons, you can do this here.

Table of Contents

Properties

$domains  : array
$packageKey  : string

Methods

__construct()  : mixed

Properties

$packageKey read-only

public string $packageKey

Methods

__construct()

public __construct(string $packageKey, array $domains) : mixed

Parameters

$packageKey : string
$domains : array
On this page