HeadRenderer

Extends DocumentRenderer

HTML document renderer for the document `<head>` element

since

3.5

package

Joomla CMS

Methods

__construct

Class constructor

__construct(\Joomla\CMS\Document\Document doc) : mixed
inherited
since

1.7.0

Arguments

doc

\Joomla\CMS\Document\DocumentA reference to the Document object that instantiated the renderer

Response

mixed

_relToAbs

Convert links in a text from relative to absolute

_relToAbs(string text) : string
inherited
since

1.7.0

Arguments

text

stringThe text processed

Response

stringText with converted links

fetchHead

Generates the head HTML and return the results as a string

fetchHead(\Joomla\CMS\Document\Renderer\Html\JDocumentHtml document) : string
deprecated
since

3.5

deprecated

4.0 Method code will be moved into the render method

Arguments

document

\Joomla\CMS\Document\Renderer\Html\JDocumentHtmlThe document for which the head will be created

Response

stringThe head hTML

getContentType

Return the content type of the renderer

getContentType() : string
inherited
since

1.7.0

Response

stringThe contentType

render

Renders a script and returns the results as a string

render(string name, array params = null, string content = null) : string
inherited
since

1.7.0

Arguments

name

stringThe name of the element to render

params

arrayArray of values

content

stringOverride the output of the renderer

Response

stringThe output of the script

Properties

_doc

Reference to the Document object that instantiated the renderer

inherited
since

1.7.0

Type(s)

\Joomla\CMS\Document\Document

_mime

Renderer mime type

inherited
since

1.7.0

Type(s)

string