You are here

protected function Captcha::defineDefaultProperties in Webform 6.x

Same name and namespace in other branches
  1. 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\WebformElement

Code

protected function defineDefaultProperties() {
  return [
    // Captcha settings.
    'captcha_type' => 'default',
    'captcha_admin_mode' => FALSE,
    'captcha_title' => '',
    'captcha_description' => '',
    // Flexbox.
    'flex' => 1,
  ];
}