Exemplo n.º 1
0
 /**
  * @param Button $button
  */
 protected function buildButtonPrototype(Button $button)
 {
     $button->setCssBaseTypeClass('btn')->setTranslationKey('button.{name}')->setComponentBaseType('control');
 }
Exemplo n.º 2
0
 /**
  * @param Button $button
  * @return string
  */
 protected function renderButton(Button $button)
 {
     return sprintf(self::FORMAT_BUTTON, $button->getFullId(), $button->getType(), $button->getCssClass(), $button->getFullName(), $button->getInputValue(), $button->getHtmlAttributesAsString(), $button->getId());
 }