LanguageConfigOverrideCrudEvent.php in Drupal 9
Same filename and directory in other branches
Namespace
Drupal\language\ConfigFile
core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.phpView source
<?php
namespace Drupal\language\Config;
use Drupal\Component\EventDispatcher\Event;
/**
* Provides a language override event for event listeners.
*
* @see \Drupal\Core\Config\ConfigCrudEvent
*/
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;
}
}
Classes
Name | Description |
---|---|
LanguageConfigOverrideCrudEvent | Provides a language override event for event listeners. |