function ConfigRenameEvent::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Config/ConfigRenameEvent.php \Drupal\Core\Config\ConfigRenameEvent::__construct()
- 8.9.x core/lib/Drupal/Core/Config/ConfigRenameEvent.php \Drupal\Core\Config\ConfigRenameEvent::__construct()
- 11.x core/lib/Drupal/Core/Config/ConfigRenameEvent.php \Drupal\Core\Config\ConfigRenameEvent::__construct()
Constructs the config rename event.
Parameters
\Drupal\Core\Config\StorableConfigBase $config: The configuration that has been renamed.
string $old_name: The old configuration object name.
Overrides ConfigCrudEvent::__construct
File
-
core/
lib/ Drupal/ Core/ Config/ ConfigRenameEvent.php, line 25
Class
- ConfigRenameEvent
- Configuration event fired when renaming a configuration object.
Namespace
Drupal\Core\ConfigCode
public function __construct(StorableConfigBase $config, $old_name) {
$this->config = $config;
$this->oldName = $old_name;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.