Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
QueryPlan::analyzeSubFields
Method of the class: QueryPlan{}
No Hooks.
Returns
Array.
Usage
// private - for code of main (parent) class only $result = $this->analyzeSubFields( $type, $selectionSet, $implementors ): array;
- $type(Type) (required)
- .
- $selectionSet(SelectionSetNode) (required)
- .
- $implementors(array)
- .
Default:[]
QueryPlan::analyzeSubFields() QueryPlan::analyzeSubFields code WC 10.9.4
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)
: [];
}