Class AssetCollection
Handles Asset objects (JavaScript and CSS). Use the getHtml() method to get the HTML output for the collection. The elements will be outputted in the same order they were added in the collection.
category |
System |
---|---|
package |
Http |
subpackage |
Collections |
__construct(array|mixed|null $argumentsArray = null)
Throws |
|
---|
array|mixed|null
count() : integer
integer
getArray() : array
array
getHtml(\StringType $type = null) : string
\StringType
(optional) You can provide either Asset::JAVASCRIPT, Asset::CSS or Asset::TRANSLATION in order to get the HTML only for a specific type of assets.
string
Returns the HTML markup of the assets.
getItem( $p_index) : mixed
Throws |
|
---|
mixed
getIterator()
getTranslations() : array
This array can then be used in frontend from JavaScript (JS Engine or plain scripts).
array
isEmpty() : boolean
boolean