Example #1
0
 /**
  * Return CSS classes
  *
  * @return string
  */
 protected function getClass()
 {
     $class = parent::getClass() . ' edit-shipping-method-button';
     if ($this->getParam(static::PARAM_ICON_STYLE)) {
         $class .= ' icon';
     }
     return $class;
 }
Example #2
0
 /**
  * Return CSS classes
  *
  * @return string
  */
 protected function getClass()
 {
     $editable = $this->getParcel()->getId() ? 'editable' : '';
     return parent::getClass() . ' edit-parcel-button ' . $editable;
 }