class PrivacyPolicyManager implements BasicEntityManagerInterface

Class PrivacyPolicyManager is injected as *** service. PrivacyPolicyManager handles the logic for managed entity.

Constants

PRIVACY_POLICY_CACHE_KEY

COOKIES_TEXT_CACHE_KEY

Properties

PrivacyPolicyRepository $repository
protected SettingsEventContainer $eventContainer

Methods

__construct(PrivacyPolicyRepository $repository, SettingsEventContainer $eventContainer)

No description

savePrivacyPolicies(array $array)

Persist multiple entities

setAllToCache()

Set all data to cache

array
getAllPrivacyPolicies()

No description

mixed
getPrivacyPolicyContentFromCache(string $locale)

Retrieve privacy policy content from cache

mixed
getCookiesTextContentFromCache(string $locale)

Retrieve cookies text from cache

Details

at line 47
__construct(PrivacyPolicyRepository $repository, SettingsEventContainer $eventContainer)

Parameters

PrivacyPolicyRepository $repository
SettingsEventContainer $eventContainer

at line 59
savePrivacyPolicies(array $array)

Persist multiple entities

Parameters

array $array

Exceptions

Exception

at line 75
setAllToCache()

Set all data to cache

at line 96
array getAllPrivacyPolicies()

Return Value

array

at line 107
mixed getPrivacyPolicyContentFromCache(string $locale)

Retrieve privacy policy content from cache

Parameters

string $locale

Return Value

mixed

at line 124
mixed getCookiesTextContentFromCache(string $locale)

Retrieve cookies text from cache

Parameters

string $locale

Return Value

mixed