public function Set::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/ Set.php, line 69
Class
- Set
- Class Set.
Namespace
Drupal\ga\AnalyticsCommandCode
public function getSettingCommands() {
$command = [
($this->trackerName ? $this->trackerName . '.' : '') . $this->command,
$this->settingKey,
$this->settingValue,
];
if (!empty($this->fieldsObject)) {
$command[] = $this->fieldsObject;
}
return [
$command,
];
}