SiteConfigExtension
extends DataExtension
in package
class Firesphere\AdblockWarning\Extensions\SiteConfigExtension
Tags
Table of Contents
Properties
Methods
- updateCMSFields() : mixed
Properties
$db
private
static mixed
$db
= ['AdblockHeading' => \SilverStripe\ORM\FieldType\DBVarchar::class, 'AdblockContent' => \SilverStripe\ORM\FieldType\DBHTMLText::class]
$defaults
private
static mixed
$defaults
= ['AdblockHeading' => 'No adblocker detected!', 'AdblockContent' => 'It seems you are not using an ad blocker.<br/>
Consider installing one, e.g. <a href="https://ublockorigin.com/" target="_blank">uBlock origin</a>.<br />
for improved privacy and no more invasive ads.']
Methods
updateCMSFields()
public
updateCMSFields(FieldList $fields) : mixed
Parameters
- $fields : FieldList