ProviderInterface
ProviderInterface.php
:
16
Interface
Provides contextualized (dynamic) tracking configuration. Use this service at runtime only.
Methods¶
getCookieIdLifetimeDays()
¶
ProviderInterface.php
:
60
|
|
|
Return values
int
Tags
getCurrentCustomerId()
¶
ProviderInterface.php
:
40
|
|
|
Return values
string
Tags
getCurrentRecommendationsApiKey()
¶
ProviderInterface.php
:
50
|
|
|
Return values
string
Tags
getCurrentRecommendationsApiUri()
¶
ProviderInterface.php
:
55
|
|
|
Return values
string
Tags
getCurrentTrackingType()
¶
ProviderInterface.php
:
45
|
|
|
Return values
Tags
isEnabled()
¶
ProviderInterface.php
:
21
Tells whether the connector is enabled for the current SiteAccess scope.
|
|
|
Return values
bool
isEnabledForAnySiteAccess()
¶
ProviderInterface.php
:
35
Tells whether the connector is enabled for at least one SiteAccess of the installation, static or dynamic.
|
|
|
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
isEnabledForSiteAccess()
¶
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.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $siteAccessName | string | - | - |
Return values
bool