You are here

protected function FacebookEvent::getSessionEvents in Facebook Pixel 8

Fetch events when a user session exists.

Return value

array The registered session events.

1 call to FacebookEvent::getSessionEvents()
FacebookEvent::getEvents in src/FacebookEvent.php
Get all registered events.

File

src/FacebookEvent.php, line 126

Class

FacebookEvent
Helper methods for facebook_pixel module.

Namespace

Drupal\facebook_pixel

Code

protected function getSessionEvents() {
  $events = (array) $this->privateTempStore
    ->get('facebook_pixel');
  $this
    ->flushEvents();
  return $events;
}