protected function Captcha::defineDefaultProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/Captcha.php \Drupal\webform\Plugin\WebformElement\Captcha::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides WebformElementBase::defineDefaultProperties
File
- src/
Plugin/ WebformElement/ Captcha.php, line 51
Class
- Captcha
- Provides a 'captcha' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineDefaultProperties() {
return [
// Captcha settings.
'captcha_type' => 'default',
'captcha_admin_mode' => FALSE,
'captcha_title' => '',
'captcha_description' => '',
// Flexbox.
'flex' => 1,
];
}