Automattic\WooCommerce\Vendor\Pelago\Emogrifier

CssInliner::attributeValueIsImportantprivateWC 1.0

Checks whether $attributeValue is marked as !important.

Method of the class: CssInliner{}

No Hooks.

Returns

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->attributeValueIsImportant( $attributeValue ): bool;
$attributeValue(string) (required)
.

CssInliner::attributeValueIsImportant() code WC 10.4.3

private function attributeValueIsImportant(string $attributeValue): bool
{
    return (new Preg())->throwExceptions($this->debug)->match('/!\\s*+important$/i', $attributeValue) !== 0;
}