/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && ($this->isDisplayWithEmptyList() || $this->hasResults()); }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && ($this->isDisplayWithEmptyList() || ($this->isCacheAvailable() && $this->hasCachedContent() || $this->hasResults())); }