Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules
QuerySecurityRule::getFragment
Method of the class: QuerySecurityRule{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->getFragment( $fragmentSpread ): ?FragmentDefinitionNode;
- $fragmentSpread(FragmentSpreadNode) (required)
- .
QuerySecurityRule::getFragment() QuerySecurityRule::getFragment code WC 10.9.1
protected function getFragment(FragmentSpreadNode $fragmentSpread): ?FragmentDefinitionNode
{
return $this->fragments[$fragmentSpread->name->value] ?? null;
}