Broarm\CookieConsent\Model\CookieGroup
CookieGroup that holds type of cookies You can add these groups trough the yml config
Synopsis
class CookieGroup
extends DataObject
{
- // constants
- const REQUIRED_DEFAULT = 'Necessary';
- const LOCAL_PROVIDER = 'local';
- // members
- private static string $table_name = 'CookieGroup';
- private static array $db = ;
- private static array $indexes = ;
- private static array $has_many = ;
- private static array $translate = ;
- // methods
- public FieldList|mixed getCMSFields()
- public bool isRequired()
- public CookieConsentCheckBoxField createField()
- public void requireDefaultRecords()
- public void canCreate()
- public bool canDelete()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Constants
Name | Value |
---|---|
REQUIRED_DEFAULT | 'Necessary' |
LOCAL_PROVIDER | 'local' |
Members
private
- $db
- $has_many
- $indexes
- $table_name
- $translate
Methods
public
- canCreate()
- canDelete() — Make deletable if not defined in config
- createField() — Create a Cookie Consent checkbox based on the current cookie group
- getCMSFields()
- isRequired() — Check if this group is the required default
- requireDefaultRecords()