You are here

public function PardotEventSubscriber::__construct in Pardot Integration 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/PardotEventSubscriber.php \Drupal\pardot\EventSubscriber\PardotEventSubscriber::__construct()

Creates a new PardotEventSubscriber.

Parameters

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

\Drupal\Core\Entity\EntityTypeManagerInterface $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/PardotEventSubscriber.php, line 57

Class

PardotEventSubscriber
Provides a response event subscriber for Pardot.

Namespace

Drupal\pardot\EventSubscriber

Code

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