RenderableInterface
API reference › HTML Contracts › RenderableInterface
Implemented by 5 types
Defines the contract for objects that can be rendered as HTML strings.
Implementing classes produce their HTML representation via render() and support string casting via
Stringable.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
render() abstract | Renders the object as an HTML string. | RenderableInterface |
Method details
Section titled “Method details”render()
Section titled “render() ”abstract public function render(): stringRenders the object as an HTML string.
Returns
string: Rendered HTML output.