Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

LeafType::parseLiteralpublicWC 1.0

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() code WC 10.9.4

public function parseLiteral(Node $valueNode, ?array $variables = null);