Documentation

includeThemeLang

void public
\Bitrix\Main\Mail\EventMessageThemeCompiler::includeThemeLang(
 string $relativePath = ""
);

Non-static method connects language files from a theme catalog.

For example: $this->includeThemeLang("header.php") connects file lang/en/header.php.

Note: theme must be initiated by the method \Bitrix\Main\Mail\EventMessageThemeCompiler::setTheme.

Parameters

ParameterDescriptionVersion
$relativePathRelative path to file.

Example



© «Bitrix24», 2001-2022
Up