You are here

public function CampaignMonitorUserManager::__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 service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Session\AccountProxyInterface $account: The account interface.

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

Overrides CampaignMonitorManager::__construct

File

modules/campaignmonitor_user/src/CampaignMonitorUserManager.php, line 75

Class

CampaignMonitorUserManager
Manager for Campaignmonitor subscriptions.

Namespace

Drupal\campaignmonitor_user

Code

public function __construct(CampaignMonitorManager $campaignmonitor_manager, ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler, AccountProxyInterface $account, EntityTypeManagerInterface $entity_type_manager) {
  $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;
}