Automattic\WooCommerce\Vendor\Sabberworm\CSS\CSSList

CSSBlockList::allRuleSets │ protected │ WC 1.0

Метод класса: CSSBlockList{}

Хуков нет.

Возвращает

void. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->allRuleSets( $aResult );
$aResult(array<int, RuleSet>) (обязательный)
.

Код CSSBlockList::allRuleSets() WC 11.2.1

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