You are here

public function CollectEvent::addCommand in Googalytics - Google Analytics 8

Add a command.

Parameters

\Drupal\ga\AnalyticsCommand\DrupalSettingCommandsInterface $command: An analytics command.

File

src/Event/CollectEvent.php, line 33

Class

CollectEvent
Class CollectEvent.

Namespace

Drupal\ga\Event

Code

public function addCommand(DrupalSettingCommandsInterface $command) {
  $this->commands[] = $command;
}