MultilingualStringFactory
in package
implements
TranslatableFactoryInterface
Factory class for multilingual strings.
Tags
Table of Contents
Interfaces
- TranslatableFactoryInterface
- Interface for factory class of multilingual strings.
Methods
- create() : Translatable
- Creates a new Translatable instance with the given language variants.
Methods
create()
Creates a new Translatable instance with the given language variants.
public
create(array<string|int, mixed> $variants) : Translatable
Parameters
- $variants : array<string|int, mixed>
-
language variants
Tags
Return values
Translatable —new instance