You are here

public function FacebookEvent::__construct in Facebook Pixel 8

FacebookEvent constructor.

Parameters

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The temp store factory service.

\Drupal\Core\Session\SessionManager $session: The session manager service.

File

src/FacebookEvent.php, line 44

Class

FacebookEvent
Helper methods for facebook_pixel module.

Namespace

Drupal\facebook_pixel

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, SessionManager $session) {
  $this->privateTempStore = $temp_store_factory
    ->get('user');
  $this->sessionManager = $session;
}