Documentation

Translatable

Trait to add translations to fields

Table of Contents

$availableLocales  : mixed
$locale  : mixed
_translatableInit()  : void
Initialize the translatable relationship
translation()  : Flex
Create a translation with the fields defined in the $values parameter.

Properties

Methods

_translatableInit()

Initialize the translatable relationship

public _translatableInit([array<string|int, mixed> $params = [] ]) : void
Parameters
$params : array<string|int, mixed> = []
Return values
void

translation()

Create a translation with the fields defined in the $values parameter.

public translation(mixed $locale, mixed $values) : Flex
Parameters
$locale : mixed
$values : mixed
Return values
Flex

Search results