class PreExistingConfigException extends ConfigException (View source)

An exception thrown if configuration with the same name already exists.

Properties

protected array $configObjects

A list of configuration objects that already exist in active configuration.

protected string $extension

The name of the module that is being installed.

Methods

array
getConfigObjects()

Gets the list of configuration objects that already exist.

string
getExtension()

Gets the name of the extension that is being installed.

static $this
create($extension, array $config_objects)

Creates an exception for an extension and a list of configuration objects.

static array
flattenConfigObjects(array $config_objects)

Flattens the config object array to a single dimensional list.

Details

array getConfigObjects()

Gets the list of configuration objects that already exist.

Return Value

array

A list of configuration objects that already exist in active configuration keyed by collection.

string getExtension()

Gets the name of the extension that is being installed.

Return Value

string

The name of the extension that is being installed.

static $this create($extension, array $config_objects)

Creates an exception for an extension and a list of configuration objects.

Parameters

$extension

The name of the extension that is being installed.

array $config_objects

A list of configuration objects that already exist in active configuration, keyed by config collection.

Return Value

$this

static array flattenConfigObjects(array $config_objects)

Flattens the config object array to a single dimensional list.

Parameters

array $config_objects

A list of configuration objects that already exist in active configuration, keyed by config collection.

Return Value

array

A list of configuration objects that have been prefixed with their collection.