Documentation

ProviderInterface

Table of Contents

Methods

__toString()  : string
delete()  : void
read()  : TranslatorBag
write()  : void
Translations available in the TranslatorBag only must be created.

Methods

read()

public read(array<string|int, mixed> $domains, array<string|int, mixed> $locales) : TranslatorBag
Parameters
$domains : array<string|int, mixed>
$locales : array<string|int, mixed>
Return values
TranslatorBag

write()

Translations available in the TranslatorBag only must be created.

public write(TranslatorBagInterface $translatorBag) : void

Translations available in both the TranslatorBag and on the provider must be overwritten. Translations available on the provider only must be kept.

Parameters
$translatorBag : TranslatorBagInterface

        
On this page

Search results