ITheme
in
Interface ITheme
This interface defines the basic contract for classes that handle theme functionality. Classes implementing this interface should provide methods for getting the version and name of the theme, and for rendering a page template.
Table of Contents
Methods
- assetsUrl() : string
- Gets the Themes Assets Url
- name() : string
- Returns the name of the theme.
- render() : string
- Renders a page template.
- version() : float
- Returns the version of the theme.
Methods
assetsUrl()
Gets the Themes Assets Url
public
assetsUrl() : string
Return values
stringname()
Returns the name of the theme.
public
name() : string
Return values
stringrender()
Renders a page template.
public
render(string $template, array<string|int, mixed>|null $vars) : string
Parameters
- $template : string
-
Name of the template
- $vars : array<string|int, mixed>|null
-
Variables to be passed to the template for rendering or null
Return values
stringversion()
Returns the version of the theme.
public
version() : float