\Ceo\View\FunctionsUnpackStylesFunction

Unpack a CSS style string into a hash.

Use with packStyles to manipulate CSS styles.

{% set myStyles = unpackStyles(styleString) %}
{% set myStyles = myStyles|merge({
 'width': '100%',
 'margin': 'auto'
}) %}

<div style="{{ packStyles(myStyles) }}"></div>

Summary

Methods
Properties
Constants
__construct()
getFunctionOptions()
getDI()
getFunctionName()
handle()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

getFunctionOptions()

getFunctionOptions() 

getDI()

getDI() 

getFunctionName()

getFunctionName() : string

Return function name

Returns

string

handle()

handle(string  $styles) : array

Accepts a style string and unpacks it into a hash

Parameters

string $styles

Returns

array