You are here

public function ServiceDataTrait::getData in Analytics 8

Return value

array

1 call to ServiceDataTrait::getData()
GoogleTagManager::getOutput in src/Plugin/AnalyticsService/GoogleTagManager.php
Returns the output of the analytics service.

File

src/Plugin/ServiceDataTrait.php, line 15

Class

ServiceDataTrait

Namespace

Drupal\analytics\Plugin

Code

public function getData() {
  $data = $this
    ->defaultData();
  $types = [
    'analytics_' . $this
      ->getPluginId() . '_data',
    'analytics_' . $this
      ->getServiceId() . '_data',
  ];
  $this
    ->moduleHandler()
    ->alter($types, $data, $this);
  return $data;
}