/** * Register the CSS classes for this block * * @return string */ protected function getBlockClasses() { return parent::getBlockClasses() . ' block-featured-products'; }
/** * Get cache parameters * * @return array */ protected function getCacheParameters() { $list = parent::getCacheParameters(); $list[] = md5(serialize($this->getParam(self::PARAM_FILTER))); return $list; }
/** * Cache allowed * * @param string $template Template * * @return boolean */ protected function isCacheAllowed($template) { return parent::isCacheAllowed($template) && !isset($template) && $this->isStaticProductList(); }