Automattic\WooCommerce\Vendor\GraphQL\Utils
BreakingChangesFinder::getArgumentMapForDirective
Method of the class: BreakingChangesFinder{}
No Hooks.
Returns
array<string, Argument>.
Usage
$result = BreakingChangesFinder::getArgumentMapForDirective( $directive ): array;
- $directive(Directive) (required)
- .
BreakingChangesFinder::getArgumentMapForDirective() BreakingChangesFinder::getArgumentMapForDirective code WC 11.1.2
private static function getArgumentMapForDirective(Directive $directive): array
{
$args = [];
foreach ($directive->args as $arg) {
$args[$arg->name] = $arg;
}
return $args;
}