SilverStripe Adblocker warning

SiteConfigExtension extends DataExtension

class Firesphere\AdblockWarning\Extensions\SiteConfigExtension

Tags
mixin

SiteConfig

Table of Contents

Properties

$db  : mixed
$defaults  : mixed

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

        
On this page

Search results