Automattic\WooCommerce\EmailEditorVendor\Symfony\Component\CssSelector
CssSelectorConverter::__construct
Метод класса: CssSelectorConverter{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$CssSelectorConverter = new CssSelectorConverter(); $CssSelectorConverter->__construct( $html );
- $html(true|false)
- Whether HTML support should be enabled. Disable it for XML documents.
По умолчанию:true
Код CssSelectorConverter::__construct() CssSelectorConverter:: construct WC 11.2.2
public function __construct(bool $html = true)
{
$this->translator = new Translator();
if ($html) {
$this->translator->registerExtension(new HtmlExtension($this->translator));
$this->cache = &self::$htmlCache;
} else {
$this->cache = &self::$xmlCache;
}
$this->translator
->registerParserShortcut(new EmptyStringParser())
->registerParserShortcut(new ElementParser())
->registerParserShortcut(new ClassParser())
->registerParserShortcut(new HashParser())
;
}