CssColorModuleValueTrait
Module value checks for output classes that use CSS colors
Table of Contents
Methods
- moduleValueIsValid() : bool
- note: we're not necessarily validating the several values, just checking the general syntax note: css4 colors are not included
- getDefaultModuleValue() : string
- prepareModuleValue() : string
Methods
moduleValueIsValid()
note: we're not necessarily validating the several values, just checking the general syntax note: css4 colors are not included
public
static moduleValueIsValid(mixed $value) : bool
Parameters
- $value : mixed
Tags
Return values
boolgetDefaultModuleValue()
protected
getDefaultModuleValue(bool $isDark) : string
Parameters
- $isDark : bool
Tags
Return values
stringprepareModuleValue()
protected
prepareModuleValue(mixed $value) : string
Parameters
- $value : mixed