public function Captcha::getDefaultProperties in YAML Form 8
Only a few elements don't inherit these default properties.
Overrides YamlFormElementBase::getDefaultProperties
See also
\Drupal\yamlform\Plugin\YamlFormElement\Textarea
\Drupal\yamlform\Plugin\YamlFormElement\YamlFormLikert
\Drupal\yamlform\Plugin\YamlFormElement\YamlFormCompositeBase
\Drupal\yamlform\Plugin\YamlFormElement\ContainerBase
File
- src/
Plugin/ YamlFormElement/ Captcha.php, line 25
Class
- Captcha
- Provides a 'captcha' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
public function getDefaultProperties() {
return [
// Captcha settings.
'captcha_type' => 'default',
'captcha_admin_mode' => FALSE,
// Flexbox.
'flex' => 1,
];
}