LanguageKey
in package
Represents a language key.
Tags
Table of Contents
Properties
- $modulePath : string
- $section : string
- $term : string
- $variables : array<string|int, mixed>
Methods
- __construct() : mixed
- translate() : string
Properties
$modulePath
private
string
$modulePath
$section
private
string
$section
$term
private
string
$term
$variables
private
array<string|int, mixed>
$variables
Methods
__construct()
public
__construct(string $section, string $term[, array<string|int, mixed> $variables = [] ][, string|null $modulePath = 'core' ]) : mixed
Parameters
- $section : string
- $term : string
- $variables : array<string|int, mixed> = []
- $modulePath : string|null = 'core'
translate()
public
translate(string $languageCode) : string
Parameters
- $languageCode : string