You are here

class AnalyticsService in Analytics 8

Same name in this branch
  1. 8 src/Annotation/AnalyticsService.php \Drupal\analytics\Annotation\AnalyticsService
  2. 8 src/Entity/AnalyticsService.php \Drupal\analytics\Entity\AnalyticsService

Defines an analytics service annotation object.

Hierarchy

Expanded class hierarchy of AnalyticsService

See also

Plugin API

1 file declares its use of AnalyticsService
AnalyticsServiceManager.php in src/AnalyticsServiceManager.php
5 classes are annotated with AnalyticsService
AmpAnalytics in analytics_amp/src/Plugin/AnalyticsService/AmpAnalytics.php
Provides AMP analytics.
AmpTrackingPixel in analytics_amp/src/Plugin/AnalyticsService/AmpTrackingPixel.php
Analytics service type.
GoogleAnalyticsGa in analytics_google/src/Plugin/AnalyticsService/GoogleAnalyticsGa.php
Analytics service type.
GoogleTagManager in src/Plugin/AnalyticsService/GoogleTagManager.php
Google Tag Manager analytics service plugin.
Piwik in analytics_piwik/src/Plugin/AnalyticsService/Piwik.php
Analytics service type.

File

src/Annotation/AnalyticsService.php, line 14

Namespace

Drupal\analytics\Annotation
View source
class AnalyticsService extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The label of the service.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $label;

  /**
   * If this plugin supports having more than one instance.
   *
   * @var bool
   */
  public $multiple = FALSE;

}

Members

Namesort descending Modifiers Type Description Overrides
AnalyticsService::$id public property The plugin ID.
AnalyticsService::$label public property The label of the service.
AnalyticsService::$multiple public property If this plugin supports having more than one instance.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2