Skip to content

Renderable ​

Type
Interface
Namespace
craft\base
Implemented by
craft\base\ElementInterface
Since
5.12.0

Renderable defines the common interface to be implemented by objects that can be rendered as HTML.

View source

Public Methods ​

MethodDescription
render()Renders the object.

render() ​

Renders the object.

View source

Arguments ​

  • $variables (array) – Variables that should be made available to the rendered template

Returns ​

\Twig\Markup