class ConfigRenameEvent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Config/ConfigRenameEvent.php \Drupal\Core\Config\ConfigRenameEvent
Configuration event fired when renaming a configuration object.
Hierarchy
- class \Symfony\Component\EventDispatcher\Event
- class \Drupal\Core\Config\ConfigCrudEvent
- class \Drupal\Core\Config\ConfigRenameEvent
- class \Drupal\Core\Config\ConfigCrudEvent
Expanded class hierarchy of ConfigRenameEvent
1 file declares its use of ConfigRenameEvent
- LanguageConfigFactoryOverride.php in core/
modules/ language/ src/ Config/ LanguageConfigFactoryOverride.php - Contains \Drupal\language\Config\LanguageConfigFactoryOverride.
File
- core/
lib/ Drupal/ Core/ Config/ ConfigRenameEvent.php, line 13 - Contains \Drupal\Core\Config\ConfigRenameEvent.
Namespace
Drupal\Core\ConfigView source
class ConfigRenameEvent extends ConfigCrudEvent {
/**
* The old configuration object name.
*
* @var string
*/
protected $oldName;
/**
* Constructs the config rename event.
*
* @param \Drupal\Core\Config\Config $config
* The configuration that has been renamed.
* @param string $old_name
* The old configuration object name.
*/
public function __construct(Config $config, $old_name) {
$this->config = $config;
$this->oldName = $old_name;
}
/**
* Gets the old configuration object name.
*
* @return string
* The old configuration object name.
*/
public function getOldName() {
return $this->oldName;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigCrudEvent:: |
protected | property | Configuration object. | |
ConfigCrudEvent:: |
public | function | Gets configuration object. | |
ConfigCrudEvent:: |
public | function | Checks to see if the provided configuration key's value has changed. | |
ConfigRenameEvent:: |
protected | property | The old configuration object name. | |
ConfigRenameEvent:: |
public | function | Gets the old configuration object name. | |
ConfigRenameEvent:: |
public | function |
Constructs the config rename event. Overrides ConfigCrudEvent:: |
|
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
public | function | Returns the EventDispatcher that dispatches this Event. | |
Event:: |
public | function | Gets the event's name. | |
Event:: |
public | function | Returns whether further event listeners should be triggered. | |
Event:: |
public | function | Stores the EventDispatcher that dispatches this Event. | |
Event:: |
public | function | Sets the event's name property. | |
Event:: |
public | function | Stops the propagation of the event to further event listeners. |