You are here

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

Add a command to the registry.

Parameters

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

1 call to CommandRegistryService::addCommand()
CommandRegistryService::addItem in src/CommandRegistryService.php
Add a command to the registry.

File

src/CommandRegistryService.php, line 44

Class

CommandRegistryService
Class CommandRegistryService.

Namespace

Drupal\ga

Code

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