Newer
Older
catch
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* @file
* Contains \Drupal\Core\Config\ConfigRenameEvent.
*/
namespace Drupal\Core\Config;
/**
* Configuration event fired when renaming a configuration object.
*/
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;
}
}