function ConfigSnapshotSubscriber::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber::__construct()
- 10 core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber::__construct()
- 9 core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber::__construct()
- 8.9.x core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber::__construct()
Constructs the ConfigSnapshotSubscriber object.
Parameters
\Drupal\Core\Config\ConfigManagerInterface $configManager: The configuration manager.
\Drupal\Core\Config\StorageInterface $sourceStorage: The source storage used to discover configuration changes.
\Drupal\Core\Config\StorageInterface $snapshotStorage: The snapshot storage used to write configuration changes.
File
-
core/
lib/ Drupal/ Core/ EventSubscriber/ ConfigSnapshotSubscriber.php, line 26
Class
- ConfigSnapshotSubscriber
- Create a snapshot when config is imported.
Namespace
Drupal\Core\EventSubscriberCode
public function __construct(protected ConfigManagerInterface $configManager, protected StorageInterface $sourceStorage, protected StorageInterface $snapshotStorage) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.