3 namespace Drupal\locale;
5 use Symfony\Component\EventDispatcher\Event;
8 * Defines a Locale event.
10 class LocaleEvent extends Event {
13 * The list of Language codes for updated translations.
20 * List of string identifiers that have been updated / created.
27 * Constructs a new LocaleEvent.
29 * @param array $lang_codes
30 * Language codes for updated translations.
32 * (optional) List of string identifiers that have been updated / created.
34 public function __construct(array $lang_codes, array $lids = []) {
35 $this->langCodes = $lang_codes;
40 * Returns the language codes.
42 * @return string[] $langCodes
44 public function getLangCodes() {
45 return $this->langCodes;
49 * Returns the string identifiers.
53 public function getLids() {