Documentation

BannerTemplates
in package
Uses UtilsProvider

Predefined templates for cookie banner.

Table of Contents

Methods

constants()  : mixed
Return PHP constant names. This is meant to be so on frontend a PHP code can be generated for a template easily.
defaults()  : mixed
Default values so the templates only override a set of settings.
get()  : mixed
Get all available templates.
getPluginConstantPrefix()  : string
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
constantsFromFolder()  : mixed
Does not support recursive folders.

Methods

constants()

Return PHP constant names. This is meant to be so on frontend a PHP code can be generated for a template easily.

public constants() : mixed

defaults()

Default values so the templates only override a set of settings.

public defaults() : mixed

getPluginConstantPrefix()

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

public getPluginConstantPrefix() : string
Tags
codeCoverageIgnore

It only returns a string with the constant prefix

Return values
string

constantsFromFolder()

Does not support recursive folders.

protected constantsFromFolder(string $glob, string $baseClass) : mixed
Parameters
$glob : string
$baseClass : string

        
On this page

Search results