Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Emogrifier::copyUninlinableCssToStyleNode( string[][] $cssRules, string $cssImportRules )
Applies $cssRules to $this->domDocument, limited to the rules that actually apply to the document, by placing them as CSS in a <style>
element.
Description Description
Parameters Parameters
- $cssRules
-
(Required) the "uninlinable" array of CSS rules returned by
parseCssRules
- $cssImportRules
-
(Required) This may contain any
@import
rules that should precede the CSS placed in the<style>
element. If there are no unlinlinable CSS rules to copy there, a<style>
element will be created containing just$cssImportRules
.$cssImportRules
may be an empty string; if it is, and there are no unlinlinable CSS rules, an empty<style>
element will not be created.
Return Return
(void)
Source Source
File: vendor/pelago/emogrifier/src/Emogrifier.php