protected getTranslationOrNew ( string $locale ) : |
||
$locale | string | |
return |
protected function getTranslationOrNew($locale)
{
if (($translation = $this->getTranslation($locale, false)) === null) {
$translation = $this->getNewTranslation($locale);
}
return $translation;
}