class UnmetDependenciesException extends ConfigException (View source)

An exception thrown if configuration has unmet dependencies.

Properties

protected array $configObjects

A list of configuration objects that have unmet dependencies.

protected string $extension

The name of the extension that is being installed.

Methods

array
getConfigObjects()

Gets the list of configuration objects that have unmet dependencies.

string
getExtension()

Gets the name of the extension that is being installed.

string
getTranslatedMessage(TranslationInterface $string_translation, string $extension)

Gets a translated message from the exception.

create($extension, array $config_objects)

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

static string
formatConfigObjectList(array $config_objects)

Formats a list of configuration objects.

Details

array getConfigObjects()

Gets the list of configuration objects that have unmet dependencies.

Return Value

array

A list of configuration objects that have unmet dependencies, keyed by object name, with the value being a list of the unmet dependencies.

string getExtension()

Gets the name of the extension that is being installed.

Return Value

string

The name of the extension that is being installed.

string getTranslatedMessage(TranslationInterface $string_translation, string $extension)

Gets a translated message from the exception.

Parameters

TranslationInterface $string_translation

The string translation service.

string $extension

The name of the extension that is being installed.

Return Value

string

static PreExistingConfigException 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 keyed by configuration name, with unmet dependencies as the value.

Return Value

PreExistingConfigException

static protected string formatConfigObjectList(array $config_objects)

Formats a list of configuration objects.

Parameters

array $config_objects

A list of configuration object names that have unmet dependencies.

Return Value

string

The imploded config_objects, formatted in an easy to read string.