Automattic\WooCommerce\Vendor\GraphQL\Utils

BreakingChangesFinder::getDirectiveMapForSchemaprivate staticWC 1.0

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

Хуков нет.

Возвращает

Массив<Строку,. Directive>

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

$result = BreakingChangesFinder::getDirectiveMapForSchema( $schema ): array;
$schema(Schema) (обязательный)
.

Код BreakingChangesFinder::getDirectiveMapForSchema() WC 11.0.1

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

    return $directives;
}