Esempio n. 1
0
 /**
  * @param ButtonElement $element
  */
 protected function initFormElement(ButtonElement $element)
 {
     $this->getElement()->addAttributes($element->getAttributes());
     $value = $element->getValue();
     $label = $element->getLabel();
     if (!empty($label)) {
         $this->setLabel($label);
     }
     if (!empty($value)) {
         $this->addAttribute('value', $value);
     }
 }