ConnectionConfig
ConnectionConfig.php
:
16
Read-only
Final
Connection settings of a single Quable instance, as resolved for the current SiteAccess scope.
Constants¶
API_TOKEN ¶
ConnectionConfig.php
:
19
|
|
|
CHANNEL_CODE ¶
ConnectionConfig.php
:
20
|
|
|
INSTANCE_URL ¶
ConnectionConfig.php
:
18
|
|
|
LANGUAGE_MAP ¶
ConnectionConfig.php
:
22
|
|
|
WEBHOOK_SECRET ¶
ConnectionConfig.php
:
21
|
|
|
Methods¶
__construct()
¶
ConnectionConfig.php
:
27
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $instanceUrl | string|null | null | - |
| $apiToken | string|null | null | - |
| $channelCode | string|null | null | - |
| $webhookSecret | string|null | null | - |
| $languageMap | array<string, string> | [] |
Mapping of Ibexa DXP language codes to Quable locale codes |
getApiToken()
¶
ConnectionConfig.php
:
58
|
|
|
Return values
string
Tags
getChannelCode()
¶
ConnectionConfig.php
:
66
|
|
|
Return values
string
Tags
getIdentityHash()
¶
ConnectionConfig.php
:
95
Identifies the Quable instance and channel the data comes from, e.g. to keep cache entries apart.
|
|
|
Return values
string
getInstanceUrl()
¶
ConnectionConfig.php
:
50
|
|
|
Return values
string
Tags
getLanguageMap()
¶
ConnectionConfig.php
:
82
|
|
|
Return values
array<string, string>
getQuableLocale()
¶
ConnectionConfig.php
:
87
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageCode | string | - | - |
Return values
string|null
getWebhookSecret()
¶
ConnectionConfig.php
:
74
Returns null when webhooks are not configured, in which case every webhook request must be rejected.
|
|
|
Return values
string|null
isConfigured()
¶
ConnectionConfig.php
:
40
Whether all settings required to talk to the Quable API are present.
|
|
|
Return values
bool