StylesRenderer
Extends DocumentRendererJDocument styles renderer
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
__construct
Class constructor
__construct(\Joomla\CMS\Document\Document doc) :
since |
1.7.0 |
---|
Arguments
- doc
Document
A reference to the Document object that instantiated the renderer
Response
mixed
_relToAbs
Convert links in a text from relative to absolute
_relToAbs( text) :
since |
1.7.0 |
---|
Arguments
- text
string
The text processed
Response
string
Text with converted links
getContentType
Return the content type of the renderer
getContentType() :
since |
1.7.0 |
---|
Response
string
The contentType
render
Renders the document stylesheets and style tags and returns the results as a string
render( head, mixed||string|int params = [], content = null) :
since |
4.0.0 |
---|
Arguments
- head
string
(unused)- params
array<string|int, mixed>
Associative array of values- content
string
The script
Response
string
The output of the script
renderAttributes
Renders the element attributes
renderAttributes(mixed||string|int attributes) :
since |
4.0.0 |
---|
Arguments
- attributes
array<string|int, mixed>
The element attributes
Response
string
The attributes string
renderElement
Renders the element
renderElement(\Joomla\CMS\WebAsset\WebAssetItemInterface|array item) :
since |
4.0.0 |
---|
Arguments
- item
WebAssetItemInterface|array<string|int, mixed>
The element
Response
string
The resulting string
renderInlineElement
Renders the inline element
renderInlineElement(\Joomla\CMS\WebAsset\WebAssetItemInterface|array item) :
since |
4.0.0 |
---|
Arguments
- item
WebAssetItemInterface|array<string|int, mixed>
The element
Response
string
The resulting string
Properties
_doc
Reference to the Document object that instantiated the renderer
_mime
Renderer mime type
since |
1.7.0 |
---|
Type(s)
string
renderedSrc
List of already rendered src
since |
4.0.0 |
---|
Type(s)
array<string|int, mixed>