Example #1
0
 /**
  * {@inheritDoc}
  */
 public function render(array $attributes = array())
 {
     return parent::render(array_merge(array('type' => 'radio', 'name' => $this->getParent() ? $this->getParent()->getName() : $this->getName()), $attributes));
 }
Example #2
0
 /**
  * {@inheritDoc}
  */
 public function render(array $attributes = array())
 {
     return parent::render(array_merge(array('type' => 'checkbox'), $attributes));
 }