/** * Set a single element attribute * * @param string $key * @param mixed $value * @return RadioGroup|ElementInterface */ public function setAttribute($key, $value) { // Do not include the options in the list of attributes // TODO: Deprecate this if ($key === 'options') { $this->setValueOptions($value); return $this; } return parent::setAttribute($key, $value); }