StyleEdit3Configuration
in package
implements
StyleEdit3ConfigurationInterface, JsonSerializable
Class StyleEdit3Configuration
Interfaces, Classes and Traits
- StyleEdit3ConfigurationInterface
- Interface StyleEdit3ConfigurationInterface
- JsonSerializable
Table of Contents
- TEMPLATE_TYPE = 'Template'
- THEME_TYPE = 'Theme'
- $active : bool
- $customCss : string
- $name : string
- $path : string
- $settings : array<string|int, mixed>
- $style : string
- $type : string
- $version : string
- createForTemplate() : StyleEdit3Configuration
- createForTheme() : StyleEdit3Configuration
- customCss() : string
- isActive() : bool
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
- name() : string
- Users chosen name for the configuration
- path() : string
- settings() : array<string|int, stdClass>
- style() : string
- type() : string
- Is this configuration for a template or a theme
- version() : string
- __construct() : mixed
- StyleEdit3Configuration constructor.
Constants
TEMPLATE_TYPE
public
string
TEMPLATE_TYPE
= 'Template'
THEME_TYPE
public
string
THEME_TYPE
= 'Theme'
Properties
$active
protected
bool
$active
$customCss
protected
string
$customCss
$name
protected
string
$name
$path
protected
string
$path
$settings
protected
array<string|int, mixed>
$settings
$style
protected
string
$style
$type
protected
string
$type
$version
protected
string
$version
Methods
createForTemplate()
public
static createForTemplate(string $name, string $path, string $style, array<string|int, mixed> $settings, string $customCss, bool $active, string $version) : StyleEdit3Configuration
Parameters
- $name : string
- $path : string
- $style : string
- $settings : array<string|int, mixed>
- $customCss : string
- $active : bool
- $version : string
Return values
StyleEdit3Configuration —createForTheme()
public
static createForTheme(string $name, string $path, string $style, array<string|int, mixed> $settings, string $customCss, bool $active, string $version) : StyleEdit3Configuration
Parameters
- $name : string
- $path : string
- $style : string
- $settings : array<string|int, mixed>
- $customCss : string
- $active : bool
- $version : string
Return values
StyleEdit3Configuration —customCss()
public
customCss() : string
Return values
string —isActive()
public
isActive() : bool
Return values
bool —jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed
Tags
Return values
mixed —data which can be serialized by json_encode, which is a value of any type other than a resource.
name()
Users chosen name for the configuration
public
name() : string
Return values
string —path()
public
path() : string
Return values
string —settings()
public
settings() : array<string|int, stdClass>
Return values
array<string|int, stdClass> —style()
public
style() : string
Return values
string —type()
Is this configuration for a template or a theme
public
type() : string
Return values
string —version()
public
version() : string
Return values
string —__construct()
StyleEdit3Configuration constructor.
protected
__construct(string $name, string $type, string $path, string $style, array<string|int, mixed> $settings, string $customCss, bool $active, string $version) : mixed
Parameters
- $name : string
- $type : string
- $path : string
- $style : string
- $settings : array<string|int, mixed>
- $customCss : string
- $active : bool
- $version : string