Automattic\WooCommerce\Vendor\GraphQL\Type

SchemaValidationContext::getFieldArgNodeprivateWC 1.0

Method of the class: SchemaValidationContext{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->getFieldArgNode( $type, $fieldName, $argName ): ?InputValueDefinitionNode;
$type(ObjectType|InterfaceType) (required)
.
$fieldName(string) (required)
.
$argName(string) (required)
.

SchemaValidationContext::getFieldArgNode() code WC 10.9.1

private function getFieldArgNode(Type $type, string $fieldName, string $argName): ?InputValueDefinitionNode
{
    $nodes = $this->getAllFieldArgNodes($type, $fieldName, $argName);

    return $nodes[0] ?? null;
}