W3cubDocs

/Drupal 8

public function ConfigRenameEvent::__construct

public ConfigRenameEvent::__construct(Config $config, $old_name)

Constructs the config rename event.

Parameters

\Drupal\Core\Config\Config $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\Config

Code

public function __construct(Config $config, $old_name) {
  $this->config = $config;
  $this->oldName = $old_name;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!ConfigRenameEvent.php/function/ConfigRenameEvent::__construct/8.1.x