You are here

function amp_analytics_element_info in Accelerated Mobile Pages (AMP) 7

Implements hook_element_info().

File

modules/amp_analytics/amp_analytics.module, line 74
AMP Analytics submodule.

Code

function amp_analytics_element_info() {

  // AMP Analytics element
  $types['amp_analytics'] = array(
    '#account' => NULL,
    '#analytics_attributes_array' => [],
    '#pre_render' => array(
      '_amp_analytics_pre_render',
    ),
    '#theme' => 'amp_analytics',
  );
  return $types;
}