public function ConfigSubscriber::__construct in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 2.1.x src/EventSubscriber/ConfigSubscriber.php \Drupal\cms_content_sync\EventSubscriber\ConfigSubscriber::__construct()
Parameters
\Drupal\Core\Config\ConfigFactory $config_factory: The config factory
File
- src/
EventSubscriber/ ConfigSubscriber.php, line 36
Class
- ConfigSubscriber
- A subscriber triggering a config when certain configuration changes.
Namespace
Drupal\cms_content_sync\EventSubscriberCode
public function __construct(ConfigFactory $config_factory, EntityTypeManagerInterface $entity_type_manager) {
$this->config_factory = $config_factory;
$this->entity_type_manager = $entity_type_manager;
}