Introduces entity_xliff_get_serializer($sourceLanguage);, and replaces all current manual instantiations of EggsCereal\Serializer().
Couple of advantages:
Creates a stable API for integration modules to get a serializer without having to know the details of EggsCereal\Serializer.
Gives us a stable place to set (and alter) a translatable's source language and the serializer's source language. Parity here is required due to the serializer's import validation mechanism checking the source language.
Also adds support for logging serialization events to watchdog via PSR3 Watchdog module.
Introduces
entity_xliff_get_serializer($sourceLanguage);
, and replaces all current manual instantiations ofEggsCereal\Serializer()
.Couple of advantages:
EggsCereal\Serializer
.