You are here

public function VersionWarning::__construct in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 modules/cms_content_sync_developer/src/EventSubscriber/VersionWarning.php \Drupal\cms_content_sync_developer\EventSubscriber\VersionWarning::__construct()
  2. 2.0.x modules/cms_content_sync_developer/src/EventSubscriber/VersionWarning.php \Drupal\cms_content_sync_developer\EventSubscriber\VersionWarning::__construct()

MyModuleService constructor.

Parameters

\Drupal\Core\Config\ConfigFactory $config_factory: The config factory.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

File

modules/cms_content_sync_developer/src/EventSubscriber/VersionWarning.php, line 52

Class

VersionWarning
A subscriber triggering a config when certain configuration changes.

Namespace

Drupal\cms_content_sync_developer\EventSubscriber

Code

public function __construct(ConfigFactory $config_factory, AccountProxyInterface $current_user, MessengerInterface $messenger) {
  $this->config_factory = $config_factory;
  $this->current_user = $current_user;
  $this->messenger = $messenger;
}