trait TranslatableTrait

Methods

__construct()

No description

getTranslation( string $locale = null)

No description

bool
hasTranslation( TranslationInterface $translation)

No description

addTranslation( TranslationInterface $translation)

No description

removeTranslation( TranslationInterface $translation)

No description

setCurrentLocale( string $currentLocale)

No description

setFallbackLocale( string $fallbackLocale)

No description

Details

at line 53
__construct()

at line 63
TranslationInterface getTranslation( string $locale = null)

Parameters

string $locale

Return Value

TranslationInterface

at line 107
TranslationInterface[] getTranslations()

Return Value

TranslationInterface[]

at line 117
bool hasTranslation( TranslationInterface $translation)

Parameters

TranslationInterface $translation

Return Value

bool

at line 125
addTranslation( TranslationInterface $translation)

Parameters

TranslationInterface $translation

at line 138
removeTranslation( TranslationInterface $translation)

Parameters

TranslationInterface $translation

at line 150
setCurrentLocale( string $currentLocale)

Parameters

string $currentLocale

at line 158
setFallbackLocale( string $fallbackLocale)

Parameters

string $fallbackLocale