/** * 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; }
/** * Return CSS classes * * @return string */ protected function getClass() { $editable = $this->getParcel()->getId() ? 'editable' : ''; return parent::getClass() . ' edit-parcel-button ' . $editable; }