You are here

public function Checkbox::getDefaultProperties in YAML Form 8

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

Overrides YamlFormElementBase::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 Checkbox::getDefaultProperties()
YamlFormToggle::getDefaultProperties in src/Plugin/YamlFormElement/YamlFormToggle.php
Only a few elements don't inherit these default properties.
1 method overrides Checkbox::getDefaultProperties()
YamlFormToggle::getDefaultProperties in src/Plugin/YamlFormElement/YamlFormToggle.php
Only a few elements don't inherit these default properties.

File

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

Class

Checkbox
Provides a 'checkbox' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getDefaultProperties() {
  return [
    'title_display' => 'after',
  ] + parent::getDefaultProperties();
}