protected function WebformHorizontalRule::defineDefaultProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformHorizontalRule.php \Drupal\webform\Plugin\WebformElement\WebformHorizontalRule::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/ WebformHorizontalRule.php, line 29
Class
- WebformHorizontalRule
- Provides a 'webform_horizontal_rule' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineDefaultProperties() {
return [
'states' => [],
'attributes' => [],
// Markup settings.
'display_on' => WebformElementDisplayOnInterface::DISPLAY_ON_FORM,
];
}