Automattic\WooCommerce\Vendor\GraphQL\Utils

BreakingChangesFinder::getDirectiveMapForSchemaprivate staticWC 1.0

Method of the class: BreakingChangesFinder{}

No Hooks.

Returns

Array. Directive>

Usage

$result = BreakingChangesFinder::getDirectiveMapForSchema( $schema ): array;
$schema(Schema) (required)
.

BreakingChangesFinder::getDirectiveMapForSchema() code WC 10.9.1

private static function getDirectiveMapForSchema(Schema $schema): array
{
    $directives = [];
    foreach ($schema->getDirectives() as $directive) {
        $directives[$directive->name] = $directive;
    }

    return $directives;
}