Automattic\WooCommerce\Vendor\GraphQL\Executor

ReferenceExecutor::getFieldEntryKeyprotected staticWC 1.0

Implements the logic to compute the key of a given fields entry.

Method of the class: ReferenceExecutor{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = ReferenceExecutor::getFieldEntryKey( $node ): string;
$node(FieldNode) (required)
.

ReferenceExecutor::getFieldEntryKey() code WC 10.9.1

protected static function getFieldEntryKey(FieldNode $node): string
{
    return $node->alias->value
        ?? $node->name->value;
}