SilverStripe\Intercom\IntercomScriptTags
Generates the IntercomScriptTags.
Place into a template; forTemplate() returns the tag
Synopsis
class IntercomScriptTags
extends ViewableData
{
- // members
- private static bool $enabled = true;
- // methods
- public bool isEnabled()
- public array getIntercomSettings()
- public string|null generateUserHash()
- public string IntercomSettingsJSON()
- public void forTemplate()
Hierarchy
Extends
- SilverStripe\View\ViewableData
Tasks
Line | Task |
---|---|
115+ | Needs to use the token instead now, will that affect existing hashes? |
Members
private
- $enabled — SilverStripe\Intercom\bool
Methods
public
- IntercomSettingsJSON()
- forTemplate()
- generateUserHash()
- getIntercomSettings() — Return the Intercom settings an array.
- isEnabled()