class ConfigRenameEvent extends ConfigCrudEvent (View source)

Configuration event fired when renaming a configuration object.

Properties

protected Config $config

Configuration object.

from  ConfigCrudEvent
protected string $oldName

The old configuration object name.

Methods

__construct(Config $config, string $old_name)

Constructs the config rename event.

getConfig()

Gets configuration object.

bool
isChanged(string $key)

Checks to see if the provided configuration key's value has changed.

string
getOldName()

Gets the old configuration object name.

Details

__construct(Config $config, string $old_name)

Constructs the config rename event.

Parameters

Config $config

Configuration object.

string $old_name

The old configuration object name.

Config getConfig()

Gets configuration object.

Return Value

Config

The configuration object that caused the event to fire.

bool isChanged(string $key)

Checks to see if the provided configuration key's value has changed.

Parameters

string $key

The configuration key to check if it has changed.

Return Value

bool

string getOldName()

Gets the old configuration object name.

Return Value

string

The old configuration object name.