protected function formatAttributes() { $html = []; foreach ($this->attributes as $name => $value) { $html[] = "{$name}=\"{$value}\""; } return implode(' ', $html); }