Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConfigRenameEvent.php

function 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\Config

Code

public function __construct(StorableConfigBase $config, $old_name) {
    $this->config = $config;
    $this->oldName = $old_name;
}
RSS feed
Powered by Drupal