class EditorConfigTranslationSubscriber implements EventSubscriberInterface (View source)

Adds configuration names to configuration mapper on POPULATE_MAPPER event.

Properties

protected ConfigFactoryInterface $configFactory

The config factory.

Methods

__construct(ConfigFactoryInterface $config_factory)

EditorConfigTranslationSubscriber constructor.

static 
getSubscribedEvents()

{@inheritdoc}

addConfigNames(ConfigMapperPopulateEvent $event)

Reacts to the populating of a configuration mapper.

Details

__construct(ConfigFactoryInterface $config_factory)

EditorConfigTranslationSubscriber constructor.

Parameters

ConfigFactoryInterface $config_factory

The factory for configuration objects.

static getSubscribedEvents()

{@inheritdoc}

addConfigNames(ConfigMapperPopulateEvent $event)

Reacts to the populating of a configuration mapper.

Parameters

ConfigMapperPopulateEvent $event

The configuration mapper event.