Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
QueryPlan::analyzeSubFields
Method of the class: QueryPlan{}
No Hooks.
Returns
array<mixed>.
Usage
// private - for code of main (parent) class only $result = $this->analyzeSubFields( $type, $selectionSet, $implementors ): array;
- $type(Type) (required)
- .
- $selectionSet(SelectionSetNode) (required)
- .
- $implementors(array<string, mixed>)
- .
Default:[]
QueryPlan::analyzeSubFields() QueryPlan::analyzeSubFields code WC 11.0.1
private function analyzeSubFields(Type $type, SelectionSetNode $selectionSet, array &$implementors = []): array
{
$type = Type::getNamedType($type);
return $type instanceof ObjectType || $type instanceof AbstractType
? $this->analyzeSelectionSet($selectionSet, $type, $implementors)
: [];
}