Automattic\WooCommerce\Vendor\Sabberworm\CSS\CSSList

Document::getAllDeclarationBlockspublicWC 1.0

Gets all DeclarationBlock objects recursively, no matter how deeply nested the selectors are. Aliased as getAllSelectors().

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

Хуков нет.

Возвращает

Массив. DeclarationBlock>

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

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

Код Document::getAllDeclarationBlocks() WC 11.0.1

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