YamlFormEntityRadios.php in YAML Form 8
Same filename in this branch
Namespace
Drupal\yamlform\ElementFile
src/Element/YamlFormEntityRadios.phpView 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
Name | Description |
---|---|
YamlFormEntityRadios | Provides a form element for a entity radios. |