Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / Config / ConfigRenameEvent.php
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 }