You are here

public function LingotekFakeConfigWrapper::__construct in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 3.3.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::__construct()
  2. 3.5.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::__construct()
  3. 3.6.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::__construct()
  4. 3.7.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::__construct()
  5. 3.8.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::__construct()

Constructs a configuration object.

Parameters

string $name: The name of the configuration object being constructed.

\Drupal\Core\Config\StorageInterface $storage: A storage object to use for reading and writing the configuration data.

\Symfony\Contracts\EventDispatcher\EventDispatcherInterface $event_dispatcher: An event dispatcher instance to use for configuration events.

\Drupal\Core\Config\TypedConfigManagerInterface $typed_config: The typed configuration manager service.

Overrides Config::__construct

File

tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php, line 15

Class

LingotekFakeConfigWrapper

Namespace

Drupal\lingotek_test

Code

public function __construct($name, StorageInterface $storage, EventDispatcherInterface $event_dispatcher, TypedConfigManagerInterface $typed_config, Config $config) {
  parent::__construct($name, $storage, $event_dispatcher, $typed_config);
  $this->config = $config;
}