ServicePluginCollection
Holds the analytics service plugin of an analytics service config entity.
- Full name:
\Drupal\analytics\Plugin\ServicePluginCollection - Parent class:
DefaultSingleLazyPluginCollection
Properties
analyticsServiceId
The ID of the analytics service using this plugin collection.
protected string $analyticsServiceId
Methods
__construct
Constructs a new ServicePluginCollection.
public __construct(\Drupal\Component\Plugin\PluginManagerInterface $manager, string $instance_id, array $configuration, string $analytics_service_id): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$manager |
\Drupal\Component\Plugin\PluginManagerInterface | |
| The manager to be used for instantiating plugins. | ||
$instance_id |
string | |
| The ID of the plugin instance. | ||
$configuration |
array | |
| An array of configuration. | ||
$analytics_service_id |
string | |
| The unique ID of the analytics service using this plugin. |
initializePlugin
{@inheritdoc}
protected initializePlugin(mixed $instance_id): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$instance_id |
mixed |