Automattic\WooCommerce\Internal\Api
QueryDepthRule::getVisitor
Reset the per-document memoization before delegating to the stock visitor.
Method of the class: QueryDepthRule{}
No Hooks.
Returns
array. The visitor definition.
Usage
$QueryDepthRule = new QueryDepthRule(); $QueryDepthRule->getVisitor( $context ): array;
- $context(QueryValidationContext) (required)
- The validation context.
QueryDepthRule::getVisitor() QueryDepthRule::getVisitor code WC 11.1.2
public function getVisitor( QueryValidationContext $context ): array {
$this->fragment_depths = array();
return parent::getVisitor( $context );
}