public function Generic::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 DrupalSettingCommandsTrait::getSettingCommands
5 methods override Generic::getSettingCommands()
- AutoLink::getSettingCommands in src/
AnalyticsCommand/ Linker/ AutoLink.php - An array of commands to be sent to Google Analytics.
- Create::getSettingCommands in src/
AnalyticsCommand/ Create.php - An array of commands to be sent to Google Analytics.
- RequirePlugin::getSettingCommands in src/
AnalyticsCommand/ RequirePlugin.php - An array of commands to be sent to Google Analytics.
- Send::getSettingCommands in src/
AnalyticsCommand/ Send.php - An array of commands to be sent to Google Analytics.
- Set::getSettingCommands in src/
AnalyticsCommand/ Set.php - An array of commands to be sent to Google Analytics.
File
- src/
AnalyticsCommand/ Generic.php, line 87
Class
- Generic
- Class FieldsObject.
Namespace
Drupal\ga\AnalyticsCommandCode
public function getSettingCommands() {
$command = [
($this->trackerName ? $this->trackerName . '.' : '') . $this->command,
];
if (!empty($this->fieldsObject)) {
$command[] = $this->fieldsObject;
}
return [
$command,
];
}