/** * Get the attributes map collection * * @return AttributesMapInterface */ public function getAttributes() { $attributes = parent::getAttributes(); if ($this->isChecked()) { $attributes->set('checked', null); } return $attributes; }
/** * Adds the value to the select * * Mainly it removes the entry in the attributes list * * @param mixed $value * * @return $this|self|Select */ public function setValue($value) { parent::setValue($value); $this->getAttributes()->remove('value'); return $this; }