You are here

Radios.php in YAML Form 8

File

src/Plugin/YamlFormElement/Radios.php
View source
<?php

namespace Drupal\yamlform\Plugin\YamlFormElement;


/**
 * Provides a 'radios' element.
 *
 * @YamlFormElement(
 *   id = "radios",
 *   api = "https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!Radios.php/class/Radios",
 *   label = @Translation("Radios"),
 *   category = @Translation("Options elements"),
 * )
 */
class Radios extends OptionsBase {

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

}

Classes

Namesort descending Description
Radios Provides a 'radios' element.