/** * Gets the button label * * @return string */ public function getLabel() { if ($this->_iconAlign == 'right') { return parent::getLabel() . PHP_EOL . $this->_renderIcon(); } else { return $this->_renderIcon() . PHP_EOL . parent::getLabel(); } }
/** * Gets the button label * * @return string */ public function getLabel() { // Render the icon on either side if (strcasecmp($this->_iconPosition, self::ICON_POSITION_LEFT) === 0) { return $this->_renderIcon() . PHP_EOL . parent::getLabel(); } return parent::getLabel() . PHP_EOL . $this->_renderIcon(); }
/** * Gets the button label * * @return string */ public function getLabel() { return $this->_renderIcon() . PHP_EOL . parent::getLabel(); }