Automattic\WooCommerce\Vendor\Sabberworm\CSS\CSSList

Document::getAllRuleSetspublicWC 1.0

Returns all RuleSet objects recursively found in the tree, no matter how deeply nested the rule sets are.

Method of the class: Document{}

No Hooks.

Returns

Array. RuleSet>

Usage

$Document = new Document();
$Document->getAllRuleSets();

Document::getAllRuleSets() code WC 10.4.3

public function getAllRuleSets()
{
    /** @var array<int, RuleSet> $aResult */
    $aResult = [];
    $this->allRuleSets($aResult);
    return $aResult;
}