You are here

public function PixelBuilderService::getEvents in Simple Facebook Pixel 8

Gets all events.

Return value

array An array of events.

1 call to PixelBuilderService::getEvents()
PixelBuilderService::getPixelScriptCode in src/PixelBuilderService.php
Gets pixel script code.

File

src/PixelBuilderService.php, line 122

Class

PixelBuilderService
Class PixelBuilderService.

Namespace

Drupal\simple_facebook_pixel

Code

public function getEvents() {
  $static_events = self::$events;
  $stored_events = $this
    ->getStoredEvents();
  $events = array_merge($static_events, $stored_events);
  return array_unique($events, SORT_REGULAR);
}