You are here

protected function Radios::defineDefaultProperties in Webform 6.x

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

Define an element's default properties.

Return value

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

Overrides OptionsBase::defineDefaultProperties

File

src/Plugin/WebformElement/Radios.php, line 21

Class

Radios
Provides a 'radios' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  $properties = [
    // Form display.
    'options_display' => 'one_column',
    'options_description_display' => 'description',
    'options__properties' => [],
    // Wrapper.
    'wrapper_type' => 'fieldset',
  ] + parent::defineDefaultProperties();
  unset($properties['format_items'], $properties['format_items_html'], $properties['format_items_text']);
  return $properties;
}