You are here

YamlFormEntityRadios.php in YAML Form 8

File

src/Element/YamlFormEntityRadios.php
View source
<?php

namespace Drupal\yamlform\Element;

use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element\Radios;

/**
 * Provides a form element for a entity radios.
 *
 * @FormElement("yamlform_entity_radios")
 */
class YamlFormEntityRadios extends Radios {
  use YamlFormEntityTrait;

  /**
   * {@inheritdoc}
   */
  public static function processRadios(&$element, FormStateInterface $form_state, &$complete_form) {
    self::setOptions($element);
    return parent::processRadios($element, $form_state, $complete_form);
  }

}

Classes

Namesort descending Description
YamlFormEntityRadios Provides a form element for a entity radios.