Documentation

I18nSubscriber
in package
implements EventSubscriberInterface

Class I18nSubscriber

Table of Contents

Interfaces

EventSubscriberInterface

Properties

$originalLocale  : array<string|int, mixed>
Used for rolling back language to its original setting after the api call.

Methods

getSubscribedEvents()  : array<string|int, mixed>
onApiPrepare()  : mixed
Support multi-lingual requests
onApiRespond()  : mixed
Reset language to the default.

Properties

$originalLocale

Used for rolling back language to its original setting after the api call.

protected array<string|int, mixed> $originalLocale = []

Array(string $requestId => \Civi\Core\Locale $locale).

Methods

getSubscribedEvents()

public static getSubscribedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results