class LanguageConfigOverrideEvents
Same name in other branches
- 9 core/modules/language/src/Config/LanguageConfigOverrideEvents.php \Drupal\language\Config\LanguageConfigOverrideEvents
- 8.9.x core/modules/language/src/Config/LanguageConfigOverrideEvents.php \Drupal\language\Config\LanguageConfigOverrideEvents
- 10 core/modules/language/src/Config/LanguageConfigOverrideEvents.php \Drupal\language\Config\LanguageConfigOverrideEvents
Defines events for language configuration overrides.
Hierarchy
- class \Drupal\language\Config\LanguageConfigOverrideEvents
Expanded class hierarchy of LanguageConfigOverrideEvents
See also
\Drupal\Core\Config\ConfigCrudEvent
3 files declare their use of LanguageConfigOverrideEvents
- EventSubscriber.php in core/
modules/ language/ tests/ language_events_test/ src/ EventSubscriber.php - LanguageConfigOverrideInstallTest.php in core/
modules/ language/ tests/ src/ Kernel/ LanguageConfigOverrideInstallTest.php - LocaleConfigSubscriber.php in core/
modules/ locale/ src/ LocaleConfigSubscriber.php
File
-
core/
modules/ language/ src/ Config/ LanguageConfigOverrideEvents.php, line 10
Namespace
Drupal\language\ConfigView source
final class LanguageConfigOverrideEvents {
/**
* The name of the event fired when saving the configuration override.
*
* This event allows you to perform custom actions whenever a language config
* override is saved. The event listener method receives a
* \Drupal\language\Config\LanguageConfigOverrideCrudEvent instance.
*
* @Event
*
* @see \Drupal\language\Config\LanguageConfigOverrideCrudEvent
* @see \Drupal\language\Config\LanguageConfigOverride::save()
* @see \Drupal\locale\LocaleConfigSubscriber
*/
const SAVE_OVERRIDE = 'language.save_override';
/**
* The name of the event fired when deleting the configuration override.
*
* This event allows you to perform custom actions whenever a language config
* override is deleted. The event listener method receives a
* \Drupal\language\Config\LanguageConfigOverrideCrudEvent instance.
*
* @Event
*
* @see \Drupal\language\Config\LanguageConfigOverrideCrudEvent
* @see \Drupal\language\Config\LanguageConfigOverride::delete()
* @see \Drupal\locale\LocaleConfigSubscriber
*/
const DELETE_OVERRIDE = 'language.delete_override';
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
LanguageConfigOverrideEvents::DELETE_OVERRIDE | constant | The name of the event fired when deleting the configuration override. | |
LanguageConfigOverrideEvents::SAVE_OVERRIDE | constant | The name of the event fired when saving the configuration override. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.