Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules
NoUndefinedVariables::undefinedVarMessage
Method of the class: NoUndefinedVariables{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = NoUndefinedVariables::undefinedVarMessage( $varName, ?string $opName ): string;
- $varName(string) (required)
- .
- ?string $opName(required)
- .
NoUndefinedVariables::undefinedVarMessage() NoUndefinedVariables::undefinedVarMessage code WC 10.9.1
public static function undefinedVarMessage(string $varName, ?string $opName): string
{
return $opName === null
? "Variable \"\${$varName}\" is not defined by operation \"{$opName}\"."
: "Variable \"\${$varName}\" is not defined.";
}