Copied!

ProviderInterface

ProviderInterface.php : 16
Interface

Provides contextualized (dynamic) tracking configuration. Use this service at runtime only.

Methods

publicgetCookieIdLifetimeDays()

ProviderInterface.php : 60
public getCookieIdLifetimeDays() : int

Return values

int

Tags
Throws
InvalidConfigurationExceptionInterface

publicgetCurrentCustomerId()

ProviderInterface.php : 40
public getCurrentCustomerId() : string

Return values

string

Tags
Throws
InvalidConfigurationExceptionInterface

publicgetCurrentRecommendationsApiKey()

ProviderInterface.php : 50
public getCurrentRecommendationsApiKey() : string

Return values

string

Tags
Throws
InvalidConfigurationExceptionInterface

publicgetCurrentRecommendationsApiUri()

ProviderInterface.php : 55
public getCurrentRecommendationsApiUri() : string

Return values

string

Tags
Throws
InvalidConfigurationExceptionInterface

publicgetCurrentTrackingType()

ProviderInterface.php : 45
public getCurrentTrackingType() : Type

Return values

Type

Tags
Throws
InvalidConfigurationExceptionInterface

publicisEnabled()

ProviderInterface.php : 21

Tells whether the connector is enabled for the current SiteAccess scope.

public isEnabled() : bool

Return values

bool

publicisEnabledForAnySiteAccess()

ProviderInterface.php : 35

Tells whether the connector is enabled for at least one SiteAccess of the installation, static or dynamic.

public isEnabledForAnySiteAccess() : bool

Meant for SiteAccess-independent contexts such as the Back Office, which cannot rely on its own scope because the connector is configured per front-end SiteAccess.

Return values

bool

publicisEnabledForSiteAccess()

ProviderInterface.php : 27

Tells whether the connector is enabled for the given SiteAccess, with the usual scope fallback (global, SiteAccess, its groups, default). A SiteAccess without any connector configuration is not enabled.

public isEnabledForSiteAccess(string $siteAccessName) : bool

Parameters

Name Type Default value Description
$siteAccessName string - -

Return values

bool