TranslatableFactoryInterface
in
Interface for factory class of multilingual strings.
Tags
Table of Contents
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, string> $variants) : Translatable
Parameters
- $variants : array<string, string>
-
language variants
Return values
Translatable —new instance