You are here

public function CampaignMonitorSubscriptionManager::__construct in Campaign Monitor 8.2

The constructor.

Parameters

\Drupal\campaignmonitor\CampaignMonitorManager $campaignmonitor_manager: The campaign monitor manager.

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module manager service.

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

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

\Drupal\Core\Utility\Token $token: The token replacement instance.

Overrides CampaignMonitorManager::__construct

File

src/CampaignMonitorSubscriptionManager.php, line 99

Class

CampaignMonitorSubscriptionManager
Manager for Campaignmonitor subscriptions.

Namespace

Drupal\campaignmonitor

Code

public function __construct(CampaignMonitorManager $campaignmonitor_manager, ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler, AccountProxyInterface $account, EntityTypeManagerInterface $entity_type_manager, MessengerInterface $messenger, Token $token) {
  $this->campaignMonitorManager = $campaignmonitor_manager;
  $this->languageManager = $language_manager;
  $this->moduleHandler = $module_handler;
  $this->configFactory = $config_factory;

  // Get account information.
  $this->config = $config_factory
    ->get('campaignmonitor.settings');
  $this->account = $account;
  $this->entityTypeManager = $entity_type_manager;
  $this->messenger = $messenger;
  $this->token = $token;
}