You are here

public function RequirePlugin::getSettingCommands in Googalytics - Google Analytics 8

An array of commands to be sent to Google Analytics.

Return value

array An array of command values.

Overrides Generic::getSettingCommands

File

src/AnalyticsCommand/RequirePlugin.php, line 42

Class

RequirePlugin
Class RequirePlugin.

Namespace

Drupal\ga\AnalyticsCommand

Code

public function getSettingCommands() {
  $command = [
    ($this->trackerName ? $this->trackerName . '.' : '') . $this->command,
    $this->pluginName,
  ];
  if (!empty($this->fieldsObject)) {
    $command[] = $this->fieldsObject;
  }
  return [
    $command,
  ];
}