Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value
CSSFunction::parse
Метод класса: CSSFunction{}
Хуков нет.
Возвращает
CSSFunction.
Использование
$result = CSSFunction::parse( $oParserState, $bIgnoreCase );
- $oParserState(ParserState) (обязательный)
- .
- $bIgnoreCase(true|false)
- .
По умолчанию: false
Код CSSFunction::parse() CSSFunction::parse WC 10.4.3
public static function parse(ParserState $oParserState, $bIgnoreCase = false)
{
$mResult = $oParserState->parseIdentifier($bIgnoreCase);
$oParserState->consume('(');
$aArguments = Value::parseValue($oParserState, ['=', ' ', ',']);
$mResult = new CSSFunction($mResult, $aArguments, ',', $oParserState->currentLine());
$oParserState->consume(')');
return $mResult;
}