[OST497528][Added] usercentrips step/ option 2

detailed information about the new addings check docs: https://docs.usercentrics.com/#/consent-mode
This commit is contained in:
2024-05-29 15:51:16 +02:00
bovenliggende 8e52b0541a
commit 049454a782
5 gewijzigde bestanden met toevoegingen van 85 en 1 verwijderingen

Bestand weergeven

@ -12,6 +12,7 @@
namespace D3\GoogleAnalytics4\Modules\Core;
use D3\GoogleAnalytics4\Application\Model\CMP\Usercentrics;
use D3\GoogleAnalytics4\Application\Model\Constants;
use D3\GoogleAnalytics4\Application\Model\ManagerHandler;
use D3\GoogleAnalytics4\Application\Model\ManagerTypes;
@ -245,4 +246,13 @@ class ViewConfig extends ViewConfig_parent
{
return Registry::getConfig()->getShopConfVar(Constants::OXID_MODULE_ID.$configParamName, null, Constants::OXID_MODULE_ID);
}
/**
* @return bool
*/
public function d3IsUsercentricsCMPChosen() :bool
{
return (bool) ($this->d3GetModuleConfigParam('_HAS_STD_MANAGER') === Usercentrics::sCMPName
or $this->d3GetModuleConfigParam('_HAS_STD_MANAGER') === Usercentrics::sAlternatename);
}
}