/** * Get image alternative text * * @param \XLite\Model\Image\Category\Image $image Image * * @return string */ protected function getAlt($image) { return $image ? $image->getAlt() ?: $image->getCategory()->getName() : ''; }
/** * {@inheritDoc} */ public function getAlt() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAlt', array()); return parent::getAlt(); }