public function HCaptcha::getAttributesString in hCaptcha 7
1 call to HCaptcha::getAttributesString()
- HCaptcha::getWidget in src/
HCaptcha/ HCaptcha.php - Build the hCaptcha captcha form.
File
- src/
HCaptcha/ HCaptcha.php, line 114
Class
Namespace
HCaptchaCode
public function getAttributesString() {
$attributes = array_filter($this->attributes);
foreach ($attributes as $attribute => &$data) {
$data = implode(' ', (array) $data);
$data = $attribute . '="' . htmlspecialchars($data, ENT_QUOTES, 'UTF-8') . '"';
}
return $attributes ? ' ' . implode(' ', $attributes) : '';
}