You are here

protected function WebformEmailConfirm::defineDefaultProperties in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElement/WebformEmailConfirm.php \Drupal\webform\Plugin\WebformElement\WebformEmailConfirm::defineDefaultProperties()

Define an element's default properties.

Return value

array An associative array contain an the element's default properties.

Overrides Email::defineDefaultProperties

File

src/Plugin/WebformElement/WebformEmailConfirm.php, line 25

Class

WebformEmailConfirm
Provides a 'email_confirm' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  $properties = parent::defineDefaultProperties() + [
    // Email confirm settings.
    'confirm__title' => '',
    'confirm__description' => '',
    'confirm__placeholder' => '',
    'flexbox' => '',
    // Wrapper.
    'wrapper_type' => 'fieldset',
  ];
  unset($properties['multiple'], $properties['multiple__header_label'], $properties['format_items'], $properties['format_items_html'], $properties['format_items_text']);
  return $properties;
}