Automattic\WooCommerce\Vendor\GraphQL\Executor
ReferenceExecutor::getFieldEntryKey
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() ReferenceExecutor::getFieldEntryKey code WC 10.9.1
protected static function getFieldEntryKey(FieldNode $node): string
{
return $node->alias->value
?? $node->name->value;
}