Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Css

StyleRule::getDeclarationAsTextpublicWC 1.0

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

Хуков нет.

Возвращает

Строку. the CSS declarations, separated and followed by a semicolon, e.g., color: red; height: 4px;

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

$StyleRule = new StyleRule();
$StyleRule->getDeclarationAsText(): string;

Код StyleRule::getDeclarationAsText() WC 10.4.3

public function getDeclarationAsText(): string
{
    return \implode(' ', $this->declarationBlock->getRules());
}