public function DefaultCommandSubscriber::onCollectRegisteredCommands in Googalytics - Google Analytics 8
Add commands registered with the command registry service.
Parameters
\Drupal\ga\Event\CollectEvent $event: The AnalyticsEvents::COLLECT event.
File
- src/
EventSubscriber/ DefaultCommandSubscriber.php, line 93
Class
- DefaultCommandSubscriber
- Class DefaultCommandSubscriber.
Namespace
Drupal\ga\EventSubscriberCode
public function onCollectRegisteredCommands(CollectEvent $event) {
foreach ($this->commandRegistry
->getCommands() as $command) {
$event
->addCommand($command);
}
}