HtmlRenderer

Extends AbstractRenderer

HTML error page renderer

since

4.0.0

todo

Change this renderer to use JDocumentHtml instead of JDocumentError, the latter is only used for B/C at this time

package

Application

Methods

getDocument

Retrieve the Document instance attached to this renderer

getDocument() : \Joomla\CMS\Document\Document
inherited
since

4.0.0

Response

\Joomla\CMS\Document\Document

getRenderer

Get a renderer instance for the given type

getRenderer(string type) : static
inherited static
since

4.0.0

throws

\InvalidArgumentException

Arguments

type

stringThe type of renderer to fetch

Response

static

loadDocument

Create the Document object for this renderer

loadDocument() : \Joomla\CMS\Document\Document
inherited
since

4.0.0

Response

\Joomla\CMS\Document\Document

render

Render the error page for the given object

render(\Throwable error) : string
since

4.0.0

Arguments

error

\ThrowableThe error object to be rendered

Response

string

Properties

type

The format (type) of the error page

inherited
since

4.0.0

Type(s)

string

document

The Document instance

inherited
since

4.0.0

Type(s)

Document