Automattic\WooCommerce\Vendor\GraphQL\Language

DirectiveLocation::haspublic staticWC 1.0

Method of the class: DirectiveLocation{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = DirectiveLocation::has( $name ): bool;
$name(string) (required)
.

DirectiveLocation::has() code WC 10.9.1

public static function has(string $name): bool
{
    return isset(self::LOCATIONS[$name]);
}