ScriptsRenderer

Extends \Joomla\CMS\Document\DocumentRenderer

JDocument head renderer

since

4.0.0

Methods

__construct

Class constructor

__construct(\Joomla\CMS\Document\Document $doc) 
inherited
since

1.7.0

Arguments

$doc

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

_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

getContentType

Return the content type of the renderer

getContentType() : string
inherited
since

1.7.0

Response

stringThe contentType

render

Renders the document script tags and returns the results as a string

render(string $head, array $params = array(), string $content = null) : string
since

4.0.0

Arguments

$head

string(unused)

$params

arrayAssociative array of values

$content

stringThe script

Response

stringThe output of the script

renderAttributes

Renders the element attributes

renderAttributes(array $attributes) : string
since

4.0.0

Arguments

$attributes

arrayThe element attributes

Response

stringThe attributes string

renderElement

Renders the element

renderElement(\Joomla\CMS\WebAsset\WebAssetItemInterface|array $item) : string
since

4.0.0

Arguments

$item

\Joomla\CMS\WebAsset\WebAssetItemInterface|arrayThe element

Response

stringThe resulting string

renderInlineElement

Renders the inline element

renderInlineElement(\Joomla\CMS\WebAsset\WebAssetItemInterface|array $item) : string
since

4.0.0

Arguments

$item

\Joomla\CMS\WebAsset\WebAssetItemInterface|arrayThe element

Response

stringThe resulting string

Properties

renderedSrc

List of already rendered src

since

4.0.0

Type(s)

array

_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