You are here

protected function WebformHorizontalRule::defineDefaultProperties in Webform 8.5

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

Code

protected function defineDefaultProperties() {
  return [
    'states' => [],
    'attributes' => [],
    // Markup settings.
    'display_on' => WebformElementDisplayOnInterface::DISPLAY_ON_FORM,
  ];
}