You are here

public function FacebookEvent::getEvents in Facebook Pixel 8

Get all registered events.

Return value

array An array of registered events.

Overrides FacebookEventInterface::getEvents

File

src/FacebookEvent.php, line 112

Class

FacebookEvent
Helper methods for facebook_pixel module.

Namespace

Drupal\facebook_pixel

Code

public function getEvents() {
  $events = self::$events;
  if (!empty($this->sessionManager) && $this->sessionManager
    ->isStarted()) {
    $events += $this
      ->getSessionEvents();
  }
  return array_unique($events, SORT_REGULAR);
}