Trait TranslateTrait
Contains a translation method aimed to help managing multiple translations for an entity.
Namespace: Cake\ORM\Behavior\Translate
Method Summary
-
translation() public
Returns the entity containing the translated fields for this object and for the specified language. If the translation for the passed language is not present, a new empty entity will be created so that values can be added to it.
Method Detail
translation() ΒΆ public
translation(string $language): $thisCake\ORM\Entity
Returns the entity containing the translated fields for this object and for the specified language. If the translation for the passed language is not present, a new empty entity will be created so that values can be added to it.
Parameters
-
string
$language Language to return entity for.
Returns
$thisCake\ORM\Entity