protected function WebformCard::defineDefaultProperties in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_cards/src/Plugin/WebformElement/WebformCard.php \Drupal\webform_cards\Plugin\WebformElement\WebformCard::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides ContainerBase::defineDefaultProperties
File
- modules/
webform_cards/ src/ Plugin/ WebformElement/ WebformCard.php, line 25
Class
- WebformCard
- Provides a 'card' element.
Namespace
Drupal\webform_cards\Plugin\WebformElementCode
protected function defineDefaultProperties() {
$properties = [
'title' => '',
'title_tag' => \Drupal::config('webform.settings')
->get('element.default_section_title_tag'),
'title_display' => '',
'title_attributes' => [],
'prev_button_label' => '',
'next_button_label' => '',
// Submission display.
'format' => $this
->getItemDefaultFormat(),
'format_html' => '',
'format_text' => '',
'format_attributes' => [],
] + $this
->defineDefaultBaseProperties();
unset($properties['flex']);
return $properties;
}