Automattic\WooCommerce\Vendor\GraphQL\Utils

AST::toArraypublic staticWC 1.0

Convert AST node to serializable array.

Method of the class: AST{}

No Hooks.

Returns

Array. mixed>

Usage

$result = AST::toArray( $node ): array;
$node(Node) (required)
.

AST::toArray() code WC 10.9.1

public static function toArray(Node $node): array
{
    return $node->toArray();
}