You are here

public function EloquaEventSubscriber::__construct in Eloqua 8

Creates a new EloquaEventSubscriber.

Parameters

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

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

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

\Drupal\Core\Executable\ExecutableManagerInterface $condition_manager: The condition manager.

File

src/EventSubscriber/EloquaEventSubscriber.php, line 52
Contains Drupal\eloqua\EventSubscriber\EloquaEventSubscriber

Class

EloquaEventSubscriber
Provides a response event subscriber for Eloqua. Sets config value for use in eloqua.module.

Namespace

Drupal\eloqua\EventSubscriber

Code

public function __construct(AccountInterface $account, EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory, ExecutableManagerInterface $condition_manager) {
  $this->account = $account;
  $this->userStorage = $entity_manager
    ->getStorage('user');
  $this->config = $config_factory
    ->get('eloqua.settings');
  $this->conditionManager = $condition_manager;
}