Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules

KnownDirectives::misplacedDirectiveMessagepublic staticWC 1.0

Метод класса: KnownDirectives{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = KnownDirectives::misplacedDirectiveMessage( $directiveName, $location ): string;
$directiveName(строка) (обязательный)
.
$location(строка) (обязательный)
.

Код KnownDirectives::misplacedDirectiveMessage() WC 11.0.1

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