Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Css

StyleRule::getSelectorspublicWC 1.0

Method of the class: StyleRule{}

No Hooks.

Returns

Array. string> the selectors, e.g. ["h1", "p"]

Usage

$StyleRule = new StyleRule();
$StyleRule->getSelectors(): array;

StyleRule::getSelectors() code WC 10.5.0

public function getSelectors(): array
{
    /** @var array<int, Selector> $selectors */
    $selectors = $this->declarationBlock->getSelectors();
    return \array_map(
        static function (Selector $selector): string {
            return (string) $selector;
        },
        $selectors
    );
}