/**
  * Add custom css class
  *
  * @param \Magento\Framework\Data\Form\Element\AbstractElement $element
  * @return string
  */
 protected function _getFrontendClass($element)
 {
     return parent::_getFrontendClass($element) . ' with-button';
 }
Exemplo n.º 2
0
 /**
  * Add custom css class
  *
  * @param \Magento\Framework\Data\Form\Element\AbstractElement $element
  * @return string
  */
 protected function _getFrontendClass($element)
 {
     $enabledString = $this->_isPaymentEnabled($element) ? ' enabled' : '';
     return parent::_getFrontendClass($element) . ' with-button' . $enabledString;
 }