creocoder\translateable\TranslateableBehavior::translate PHP Méthode

translate() public méthode

Returns the translation model for the specified language.
public translate ( string | null $language = null ) : ActiveRecord
$language string | null
Résultat yii\db\ActiveRecord
    public function translate($language = null)
    {
        return $this->getTranslation($language);
    }