class LanguageConfigOverrideCrudEvent
Same name in other branches
- 9 core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php \Drupal\language\Config\LanguageConfigOverrideCrudEvent
- 8.9.x core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php \Drupal\language\Config\LanguageConfigOverrideCrudEvent
- 10 core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php \Drupal\language\Config\LanguageConfigOverrideCrudEvent
Provides a language override event for event listeners.
Hierarchy
- class \Drupal\language\Config\LanguageConfigOverrideCrudEvent extends \Drupal\Component\EventDispatcher\Event
Expanded class hierarchy of LanguageConfigOverrideCrudEvent
See also
\Drupal\Core\Config\ConfigCrudEvent
2 files declare their use of LanguageConfigOverrideCrudEvent
- EventSubscriber.php in core/
modules/ language/ tests/ language_events_test/ src/ EventSubscriber.php - LocaleConfigSubscriber.php in core/
modules/ locale/ src/ LocaleConfigSubscriber.php
File
-
core/
modules/ language/ src/ Config/ LanguageConfigOverrideCrudEvent.php, line 12
Namespace
Drupal\language\ConfigView source
class LanguageConfigOverrideCrudEvent extends Event {
/**
* Configuration object.
*
* @var \Drupal\language\Config\LanguageConfigOverride
*/
protected $override;
/**
* Constructs a configuration event object.
*
* @param \Drupal\language\Config\LanguageConfigOverride $override
* Configuration object.
*/
public function __construct(LanguageConfigOverride $override) {
$this->override = $override;
}
/**
* Gets configuration object.
*
* @return \Drupal\language\Config\LanguageConfigOverride
* The configuration object that caused the event to fire.
*/
public function getLanguageConfigOverride() {
return $this->override;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
LanguageConfigOverrideCrudEvent::$override | protected | property | Configuration object. |
LanguageConfigOverrideCrudEvent::getLanguageConfigOverride | public | function | Gets configuration object. |
LanguageConfigOverrideCrudEvent::__construct | public | function | Constructs a configuration event object. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.