Smile\ElasticsuiteCatalog\Block\Navigation::canShowBlock PHP Method

canShowBlock() public method

According to @see \Magento\LayeredNavigationStaging\Block\Navigation::canShowBlock We should not show the block if staging is enabled and if we are currently previewing the results.
public canShowBlock ( ) : boolean
return boolean
    public function canShowBlock()
    {
        if ($this->moduleManager->isEnabled('Magento_Staging')) {
            try {
                $versionManager = $this->objectManager->get('\\Magento\\Staging\\Model\\VersionManager');
                return parent::canShowBlock() && !$versionManager->isPreviewVersion();
            } catch (\Exception $exception) {
                return parent::canShowBlock();
            }
        }
        return parent::canShowBlock();
    }