You are here

public function Radios::getDefaultProperties in YAML Form 8

Only a few elements don't inherit these default properties.

Overrides OptionsBase::getDefaultProperties

See also

\Drupal\yamlform\Plugin\YamlFormElement\Textarea

\Drupal\yamlform\Plugin\YamlFormElement\YamlFormLikert

\Drupal\yamlform\Plugin\YamlFormElement\YamlFormCompositeBase

\Drupal\yamlform\Plugin\YamlFormElement\ContainerBase

1 call to Radios::getDefaultProperties()
YamlFormRadiosOther::getDefaultProperties in src/Plugin/YamlFormElement/YamlFormRadiosOther.php
Only a few elements don't inherit these default properties.
1 method overrides Radios::getDefaultProperties()
YamlFormRadiosOther::getDefaultProperties in src/Plugin/YamlFormElement/YamlFormRadiosOther.php
Only a few elements don't inherit these default properties.

File

src/Plugin/YamlFormElement/Radios.php, line 20

Class

Radios
Provides a 'radios' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getDefaultProperties() {
  return parent::getDefaultProperties() + [
    // Form display.
    'options_display' => 'one_column',
  ];
}