You are here

public function AmpAnalyticsService::getOutput in Analytics 7

Returns the output of the analytics service.

Parameters

array $context:

Return value

array A structured, renderable array.

Overrides AnalyticsServiceInterface::getOutput

File

analytics_amp/src/AmpAnalyticsService.php, line 53

Class

AmpAnalyticsService

Code

public function getOutput(array $context) {
  if (amp_is_amp_request()) {
    return $this
      ->getAmpOutput($this
      ->getConfiguration(), $context);
  }
}