public function PardotEventSubscriber::__construct in Pardot Integration 2.x
Same name and namespace in other branches
- 8 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_type_manager: The entity type 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\EventSubscriberCode
public function __construct(ConfigFactoryInterface $config_factory, AccountInterface $account, EntityTypeManagerInterface $entity_type_manager, ExecutableManagerInterface $condition_manager) {
$this->config = $config_factory
->get('pardot.settings');
$this->account = $account;
$this->user_storage = $entity_type_manager
->getStorage('user');
$this->condition_manager = $condition_manager;
}