class ConfigModuleOverridesEvent extends Event (View source)

Event object to allow configuration to be overridden by modules.

Properties

protected array $names

Configuration names.

protected array $overrides

Configuration overrides.

protected LanguageInterface $language

The Language object used to override configuration data.

Methods

__construct(array $names, LanguageInterface $language = NULL)

Constructs a configuration overrides event object.

array
getNames()

Gets configuration names.

getLanguage()

Gets configuration language.

array
getOverrides()

Get configuration overrides.

$this
setOverride(string $name, array $values)

Sets a configuration override for the given name.

Details

__construct(array $names, LanguageInterface $language = NULL)

Constructs a configuration overrides event object.

Parameters

array $names

A list of configuration names.

LanguageInterface $language

(optional) The language for this configuration.

array getNames()

Gets configuration names.

Return Value

array

The list of configuration names that can be overridden.

LanguageInterface getLanguage()

Gets configuration language.

Return Value

LanguageInterface

The configuration language object.

array getOverrides()

Get configuration overrides.

Return Value

array

The array of configuration overrides.

$this setOverride(string $name, array $values)

Sets a configuration override for the given name.

Parameters

string $name

The configuration object name to override.

array $values

The values in the configuration object to override.

Return Value

$this