Error message

You are browsing documentation for drupal 10.3.x, which is not supported anymore. <a href="/api/drupal/core%21modules%21editor%21src%21EventSubscriber%21EditorConfigTranslationSubscriber.php/function/EditorConfigTranslationSubscriber%3A%3A__construct/11.x">Read the updated version of this page for drupal 11.x (the latest version).</a>

function EditorConfigTranslationSubscriber::__construct

Same name in other branches
  1. 9 core/modules/editor/src/EventSubscriber/EditorConfigTranslationSubscriber.php \Drupal\editor\EventSubscriber\EditorConfigTranslationSubscriber::__construct()
  2. 8.9.x core/modules/editor/src/EventSubscriber/EditorConfigTranslationSubscriber.php \Drupal\editor\EventSubscriber\EditorConfigTranslationSubscriber::__construct()
  3. 11.x core/modules/editor/src/EventSubscriber/EditorConfigTranslationSubscriber.php \Drupal\editor\EventSubscriber\EditorConfigTranslationSubscriber::__construct()

EditorConfigTranslationSubscriber constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

File

core/modules/editor/src/EventSubscriber/EditorConfigTranslationSubscriber.php, line 29

Class

EditorConfigTranslationSubscriber
Adds configuration names to configuration mapper on POPULATE_MAPPER event.

Namespace

Drupal\editor\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory) {
    $this->configFactory = $config_factory;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.