Automattic\WooCommerce\Vendor\Sabberworm\CSS\CSSList

CSSBlockList::allRuleSetsprotectedWC 1.0

Method of the class: CSSBlockList{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->allRuleSets( $aResult );
$aResult(array) (required)
.

CSSBlockList::allRuleSets() code WC 10.7.0

protected function allRuleSets(array &$aResult)
{
    foreach ($this->aContents as $mContent) {
        if ($mContent instanceof RuleSet) {
            $aResult[] = $mContent;
        } elseif ($mContent instanceof CSSBlockList) {
            $mContent->allRuleSets($aResult);
        }
    }
}