Documentation

ITheme

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
string

name()

Returns the name of the theme.

public name() : string
Return values
string

render()

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
string

version()

Returns the version of the theme.

public version() : float
Return values
float

        
On this page

Search results