Backup of db before drupal security update
[yaffs-website] / web / core / modules / locale / src / LocaleEvent.php
1 <?php
2
3 namespace Drupal\locale;
4
5 use Symfony\Component\EventDispatcher\Event;
6
7 /**
8  * Defines a Locale event.
9  */
10 class LocaleEvent extends Event {
11
12   /**
13    * The list of Language codes for updated translations.
14    *
15    * @var string[]
16    */
17   protected $langCodes;
18
19   /**
20    * List of string identifiers that have been updated / created.
21    *
22    * @var string[]
23    */
24   protected $original;
25
26   /**
27    * Constructs a new LocaleEvent.
28    *
29    * @param array $lang_codes
30    *   Language codes for updated translations.
31    * @param array $lids
32    *   (optional) List of string identifiers that have been updated / created.
33    */
34   public function __construct(array $lang_codes, array $lids = []) {
35     $this->langCodes = $lang_codes;
36     $this->lids = $lids;
37   }
38
39   /**
40    * Returns the language codes.
41    *
42    * @return string[] $langCodes
43    */
44   public function getLangCodes() {
45     return $this->langCodes;
46   }
47
48   /**
49    * Returns the string identifiers.
50    *
51    * @return array $lids
52    */
53   public function getLids() {
54     return $this->lids;
55   }
56
57 }