3 namespace Drupal\Core\Config;
6 * Configuration event fired when renaming a configuration object.
8 class ConfigRenameEvent extends ConfigCrudEvent {
11 * The old configuration object name.
18 * Constructs the config rename event.
20 * @param \Drupal\Core\Config\Config $config
21 * The configuration that has been renamed.
22 * @param string $old_name
23 * The old configuration object name.
25 public function __construct(Config $config, $old_name) {
26 $this->config = $config;
27 $this->oldName = $old_name;
31 * Gets the old configuration object name.
34 * The old configuration object name.
36 public function getOldName() {
37 return $this->oldName;