protected function ServicePluginCollection::initializePlugin in Analytics 8
Initializes and stores a plugin.
Parameters
string $instance_id: The ID of the plugin instance to initialize.
Overrides DefaultSingleLazyPluginCollection::initializePlugin
File
- src/
Plugin/ ServicePluginCollection.php, line 46
Class
Namespace
Drupal\analytics\PluginCode
protected function initializePlugin($instance_id) {
parent::initializePlugin($instance_id);
/** @var \Drupal\analytics\Plugin\ServicePluginBase $plugin_instance */
$plugin_instance = $this->pluginInstances[$instance_id];
$plugin_instance
->setServiceId($this->analyticsServiceId);
}