KlarnaHubTermsAndConditions
in package
Class KlarnaHubTermsAndConditions
Processes the Klarna terms and conditions content and applies the Klarna related texts.
Tags
Table of Contents
- $configurationKey : string
- $contentBody : string
- $defaultLanguageCode : string
- $variableName : string
- __construct() : mixed
- KlarnaHubTermsAndConditions constructor.
- getContent() : string
- Returns the processed content.
- _getLanguageCode() : string
- Get the code of the language to be used.
Properties
$configurationKey
protected
string
$configurationKey
= 'GAMBIO_HUB_KLARNA_HUB_TERMS_AND_CONDITIONS'
$contentBody
protected
string
$contentBody
$defaultLanguageCode
protected
string
$defaultLanguageCode
= 'en'
$variableName
protected
string
$variableName
= '{$klarna_hub_terms_and_conditions}'
Methods
__construct()
KlarnaHubTermsAndConditions constructor.
public
__construct(string $contentBody) : mixed
Parameters
- $contentBody : string
-
Pre-rendered content body content that was not yet processed by this class.
Return values
mixed —getContent()
Returns the processed content.
public
getContent() : string
Return values
string —_getLanguageCode()
Get the code of the language to be used.
protected
_getLanguageCode() : string
There are multiple fallback levels in case no language code was stored in the current session.