$sync
$sync :\DevOwl\Multilingual\Sync
Sync mechanism class.
Allows to copy content by sync options or by custom callback.
$sync :\DevOwl\Multilingual\Sync
Sync mechanism class.
__construct(\DevOwl\Multilingual\Sync $sync)
C'tor.
\DevOwl\Multilingual\Sync | $sync |
copy(string $sourceLanguage,array<mixed,string> $destinationLanguages,callable $callback)
Copy content to a set of other languages. If you do not pass a callback the content will be copied from your sync options you passed via constructor.
string | $sourceLanguage | |
array<mixed,string> | $destinationLanguages | |
callable | $callback | Your callback which starts copying in the correct language context |