function LocaleEvent::__construct
Same name in other branches
- 9 core/modules/locale/src/LocaleEvent.php \Drupal\locale\LocaleEvent::__construct()
- 10 core/modules/locale/src/LocaleEvent.php \Drupal\locale\LocaleEvent::__construct()
- 11.x core/modules/locale/src/LocaleEvent.php \Drupal\locale\LocaleEvent::__construct()
Constructs a new LocaleEvent.
Parameters
array $lang_codes: Language codes for updated translations.
array $lids: (optional) List of string identifiers that have been updated / created.
File
-
core/
modules/ locale/ src/ LocaleEvent.php, line 34
Class
- LocaleEvent
- Defines a Locale event.
Namespace
Drupal\localeCode
public function __construct(array $lang_codes, array $lids = []) {
$this->langCodes = $lang_codes;
$this->lids = $lids;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.