Css
class Css implements PresetAdapterInterface
Properties
static array | $defaults |
Methods
Return the parsed and transformed statement array
Parse and transform the preset statement to a ready-to-use information
Returns the src path of the preset statement
Returns the full HTML script
Details
at line 67
__construct(array $data, AssetsPresetInterface $preset)
at line 80
array
getData()
Return the parsed and transformed statement array
at line 108
void
parse()
Parse and transform the preset statement to a ready-to-use information
The statement string can be constructed as (without spaces):
position : info : media : src
where position
can be an integer or a string like top
or bottom
, info
can be
min
for already minified stylesheets, media
can be any media string (no validation) and
src
is the relative path of the file in the original package. Position is a [-1;100]
integer range where 100 is the top of the stack (first files to include).
By default, position is 0 (the file is added to the stack), and the script is considered not minified neither as packed.
at line 170
string
__toString()
Returns the src path of the preset statement
at line 186
string
__toHtml()
Returns the full HTML script