I18nSubscriber
class I18nSubscriber implements EventSubscriberInterface
Class I18nSubscriber
Properties
array | $originalLang | Used for rolling back language to its original setting after the api call. |
Methods
static array
getSubscribedEvents()
No description
setLocale(string $lcMessages, int $requestId)
Sets the tsLocale and dbLocale for multi-lingual sites.
Details
at line 49
static array
getSubscribedEvents()
at line 64
onApiPrepare(Event $event)
Support multi-lingual requests
at line 86
onApiRespond(Event $event)
Reset language to the default.
at line 105
setLocale(string $lcMessages, int $requestId)
Sets the tsLocale and dbLocale for multi-lingual sites.
Some code duplication from CRM/Core/BAO/ConfigSetting.php retrieve() to avoid regressions from refactoring.