protected function Address::defineDefaultProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/Address.php \Drupal\webform\Plugin\WebformElement\Address::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides WebformCompositeBase::defineDefaultProperties
File
- src/
Plugin/ WebformElement/ Address.php, line 80
Class
- Address
- Provides a 'address' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineDefaultProperties() {
$properties = [
// Element settings.
'title' => '',
'default_value' => [],
// Description/Help.
'help' => '',
'help_title' => '',
'description' => '',
'more' => '',
'more_title' => '',
// Form display.
'title_display' => 'invisible',
'description_display' => '',
'help_display' => '',
// Form validation.
'required' => FALSE,
// Submission display.
'format' => $this
->getItemDefaultFormat(),
'format_html' => '',
'format_text' => '',
'format_items' => $this
->getItemsDefaultFormat(),
'format_items_html' => '',
'format_items_text' => '',
// Address settings.
'available_countries' => [],
'field_overrides' => [],
'langcode_override' => '',
] + $this
->defineDefaultBaseProperties() + $this
->defineDefaultMultipleProperties();
unset($properties['multiple__header']);
return $properties;
}