/** * {@inheritDoc} */ public function getAttributes() { return array_merge(parent::getAttributes(), array('type' => 'checkbox')); }
/** * {@inheritDoc} */ public function getAttributes() { return array_merge(parent::getAttributes(), array('type' => 'radio', 'name' => $this->getParent() ? $this->getParent()->getName() : $this->getName())); }