HeadRenderer
Extends \Joomla\CMS\Document\DocumentRendererHTML document renderer for the document `<head>` element
since |
3.5 |
---|
Methods
__construct
Class constructor
__construct(\Joomla\CMS\Document\Document $doc)
since |
1.7.0 |
---|
Arguments
- $doc
\Joomla\CMS\Document\Document
A reference to the Document object that instantiated the renderer
_relToAbs
Convert links in a text from relative to absolute
_relToAbs(string $text) : string
since |
1.7.0 |
---|
Arguments
- $text
string
The text processed
Response
string
Text with converted links
fetchHead
Generates the head HTML and return the results as a string
fetchHead(\Joomla\CMS\Document\Renderer\Html\JDocumentHtml $document) : string
since |
3.5 |
---|---|
deprecated |
4.0 Method code will be moved into the render method |
Arguments
- $document
\Joomla\CMS\Document\Renderer\Html\JDocumentHtml
The document for which the head will be created
Response
string
The head hTML
getContentType
Return the content type of the renderer
getContentType() : string
since |
1.7.0 |
---|
Response
string
The contentType
render
Renders a script and returns the results as a string
render(string $name, array $params = null, string $content = null) : string
since |
1.7.0 |
---|
Arguments
- $name
string
The name of the element to render- $params
array
Array of values- $content
string
Override the output of the renderer
Response
string
The output of the script
Properties
_doc
Reference to the Document object that instantiated the renderer
_mime
Renderer mime type
since |
1.7.0 |
---|
Type(s)
string