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
get()
Get all available templates.
public
get() : mixed
getPluginConstantPrefix()
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
public
getPluginConstantPrefix() : string
Tags
Return values
stringconstantsFromFolder()
Does not support recursive folders.
protected
constantsFromFolder(string $glob, string $baseClass) : mixed
Parameters
- $glob : string
- $baseClass : string