protected function addAttributes() { $attrs = ''; foreach ($this->dropdownAttr as $attr => $value) { $attrs .= $attr . '=' . '"' . $value . '" '; } return $attrs; }