Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Config/ConfigRenameEvent.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Core\Config; | |
4 | |
5 /** | |
6 * Configuration event fired when renaming a configuration object. | |
7 */ | |
8 class ConfigRenameEvent extends ConfigCrudEvent { | |
9 | |
10 /** | |
11 * The old configuration object name. | |
12 * | |
13 * @var string | |
14 */ | |
15 protected $oldName; | |
16 | |
17 /** | |
18 * Constructs the config rename event. | |
19 * | |
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. | |
24 */ | |
25 public function __construct(Config $config, $old_name) { | |
26 $this->config = $config; | |
27 $this->oldName = $old_name; | |
28 } | |
29 | |
30 /** | |
31 * Gets the old configuration object name. | |
32 * | |
33 * @return string | |
34 * The old configuration object name. | |
35 */ | |
36 public function getOldName() { | |
37 return $this->oldName; | |
38 } | |
39 | |
40 } |