Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (State $appState) | |
setHtml ($html) | |
setCss ($css) | |
disableStyleBlocksParsing () | |
process () | |
This class will inline the css of an html to each tag to be used for applications such as a styled email.
Definition at line 14 of file CssInliner.php.
__construct | ( | State | $appState | ) |
disableStyleBlocksParsing | ( | ) |
process | ( | ) |
Processes the html by placing the css inline. Set first the css by using setCss and html by using setHtml.
Definition at line 68 of file CssInliner.php.
setCss | ( | $css | ) |
Sets the CSS to be merged with the HTML. This method should be used with setHtml.
string | $css |
Definition at line 47 of file CssInliner.php.
setHtml | ( | $html | ) |
Sets the HTML to be used with the css. This method should be used with setCss.
string | $html |
Definition at line 36 of file CssInliner.php.