function LocaleEvent::__construct

Same name and namespace in other branches
  1. 10 core/modules/locale/src/LocaleEvent.php \Drupal\locale\LocaleEvent::__construct()
  2. 11.x core/modules/locale/src/LocaleEvent.php \Drupal\locale\LocaleEvent::__construct()
  3. 9 core/modules/locale/src/LocaleEvent.php \Drupal\locale\LocaleEvent::__construct()
  4. 8.9.x core/modules/locale/src/LocaleEvent.php \Drupal\locale\LocaleEvent::__construct()

Constructs a new LocaleEvent.

Parameters

array $langCodes: 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 20

Class

LocaleEvent
Defines a Locale event.

Namespace

Drupal\locale

Code

public function __construct(protected array $langCodes, protected array $lids = []) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.