Skip to content

Commit

Permalink
added event to determine if case should be lower for other plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
AltamashShaikh committed Jan 14, 2025
1 parent 64638af commit 5c43380
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MarketingCampaignsReporting.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function registerEvents()
'Report.filterReports' => 'removeOriginalCampaignReport',
'Insights.addReportToOverview' => 'addReportToInsightsOverview',
'AssetManager.getStylesheetFiles' => 'getStylesheetFiles',
'Plugin.shouldLowerCampaignCase' => 'shouldLowerCampaignCase',
);
}

Expand Down Expand Up @@ -120,4 +121,10 @@ public function isTrackerPlugin()
{
return true;
}

public function shouldLowerCampaignCase($pluginName, &$shouldLowerCampaignCase)
{
$systemSettings = StaticContainer::get(SystemSettings::class);
$shouldLowerCampaignCase = !$systemSettings->doNotChangeCaseOfUtmParameters->getValue();
}
}

0 comments on commit 5c43380

Please sign in to comment.