Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
LeafType::parseLiteral
Parses an externally provided literal value (hardcoded in Automattic\WooCommerce\Vendor\GraphQL query) to use as an input.
Should throw an exception with a client-friendly message on invalid value nodes, @see ClientAware.
Method of the class: LeafType{}
No Hooks.
Returns
Mixed.
Usage
$LeafType = new LeafType(); $LeafType->parseLiteral( $valueNode, ?array $variables );
- $valueNode(ValueNode&Node) (required)
- .
- ?array $variables
- .
Default:null
LeafType::parseLiteral() LeafType::parseLiteral code WC 10.9.4
public function parseLiteral(Node $valueNode, ?array $variables = null);