Styles
extends PlatformUtility
in package
Provides access to styles utility functions.
Tags
Table of Contents
- add() : void
- Add a style.
- html() : string
- Get the html for styles.
- inject() : string
- Inject added styles.
- insertCustomHeaderCss() : string
- Fetches the smarty evaluated content of the custom header CSS file.
- list() : array<string|int, mixed>
- Get a list of added styles.
Methods
add()
Add a style.
public
add(array<string|int, mixed> $style[, int $priority = 0 ]) :
void
Parameters
- $style : array<string|int, mixed>
- $priority : int = 0
Tags
Return values
void —html()
Get the html for styles.
public
html() :
string
Tags
Return values
string —inject()
Inject added styles.
public
inject() :
string
Tags
Return values
string —insertCustomHeaderCss()
Fetches the smarty evaluated content of the custom header CSS file.
public
insertCustomHeaderCss() :
string
Tags
Return values
string —The content of the custom header CSS file, or an empty string if the file does not exist.
list()
Get a list of added styles.
public
list() :
array<string|int, mixed>