You are here

public function OptionsBase::getOtherProperties in YAML Form 8

Get option (option) properties.

Return value

array An associative array containing other (option) properties.

4 calls to OptionsBase::getOtherProperties()
YamlFormButtonsOther::getDefaultProperties in src/Plugin/YamlFormElement/YamlFormButtonsOther.php
Only a few elements don't inherit these default properties.
YamlFormCheckboxesOther::getDefaultProperties in src/Plugin/YamlFormElement/YamlFormCheckboxesOther.php
Only a few elements don't inherit these default properties.
YamlFormRadiosOther::getDefaultProperties in src/Plugin/YamlFormElement/YamlFormRadiosOther.php
Only a few elements don't inherit these default properties.
YamlFormSelectOther::getDefaultProperties in src/Plugin/YamlFormElement/YamlFormSelectOther.php
Only a few elements don't inherit these default properties.

File

src/Plugin/YamlFormElement/OptionsBase.php, line 50

Class

OptionsBase
Provides a base 'options' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getOtherProperties() {
  return [
    'other__option_label' => $this
      ->t('Other...'),
    'other__type' => 'textfield',
    'other__title' => '',
    'other__placeholder' => $this
      ->t('Enter other...'),
    'other__description' => '',
    // Text field or textarea.
    'other__size' => '',
    'other__maxlength' => '',
    'other__field_prefix' => '',
    'other__field_suffix' => '',
    // Textarea.
    'other__rows' => '',
    // Number.
    'other__min' => '',
    'other__max' => '',
    'other__step' => '',
  ];
}