Ichaber\SSSwiftype\Extensions\SwiftypeSiteTreeCrawlerExtension::withVersionContext
Sets the version context to Live as that's what crawlers will (normally) see
The main function is to suppress the ?stage=Live querystring. LeftAndMain will set the default reading mode to 'DRAFT' when initialising so to counter this we need to re-set the default reading mode back to LIVE
Signature
private function withVersionContext(callable
$callback )
Parameters
$callback
— callable