abstract class ConfigFactoryOverrideBase implements EventSubscriberInterface (View source)

Defines a base event listener implementation configuration overrides.

Methods

addCollections(ConfigCollectionInfo $collection_info)

Reacts to the ConfigEvents::COLLECTION_INFO event.

onConfigSave(ConfigCrudEvent $event)

Actions to be performed to configuration override on configuration save.

onConfigDelete(ConfigCrudEvent $event)

Actions to be performed to configuration override on configuration delete.

onConfigRename(ConfigRenameEvent $event)

Actions to be performed to configuration override on configuration rename.

static 
getSubscribedEvents()

{@inheritdoc}

filterOverride(Config $config, StorableConfigBase $override)

Filters data in the override based on what is currently in configuration.

bool
filterNestedArray(array $original_data, array $override_data)

Filters data in nested arrays.

Details

abstract addCollections(ConfigCollectionInfo $collection_info)

Reacts to the ConfigEvents::COLLECTION_INFO event.

Parameters

ConfigCollectionInfo $collection_info

The configuration collection info event.

abstract onConfigSave(ConfigCrudEvent $event)

Actions to be performed to configuration override on configuration save.

Parameters

ConfigCrudEvent $event

The config CRUD event.

abstract onConfigDelete(ConfigCrudEvent $event)

Actions to be performed to configuration override on configuration delete.

Parameters

ConfigCrudEvent $event

The config CRUD event.

abstract onConfigRename(ConfigRenameEvent $event)

Actions to be performed to configuration override on configuration rename.

Parameters

ConfigRenameEvent $event

The config rename event.

static getSubscribedEvents()

{@inheritdoc}

protected filterOverride(Config $config, StorableConfigBase $override)

Filters data in the override based on what is currently in configuration.

Parameters

Config $config

Current configuration object.

StorableConfigBase $override

Override object corresponding to the configuration to filter data in.

protected bool filterNestedArray(array $original_data, array $override_data)

Filters data in nested arrays.

Parameters

array $original_data

Original data array to filter against.

array $override_data

Override data to filter.

Return Value

bool

TRUE if $override_data was changed, FALSE otherwise.