Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules

KnownDirectives::misplacedDirectiveMessagepublic staticWC 1.0

Method of the class: KnownDirectives{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = KnownDirectives::misplacedDirectiveMessage( $directiveName, $location ): string;
$directiveName(string) (required)
.
$location(string) (required)
.

KnownDirectives::misplacedDirectiveMessage() code WC 10.9.1

public static function misplacedDirectiveMessage(string $directiveName, string $location): string
{
    return "Directive \"{$directiveName}\" may not be used on \"{$location}\".";
}