public static function Item::validate in YAML Form 8
Form API callback. Removes ignored element for $form_state values.
File
- src/
Plugin/ YamlFormElement/ Item.php, line 49
Class
- Item
- Provides a 'item' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
public static function validate(array &$element, FormStateInterface $form_state) {
$name = $element['#name'];
$form_state
->unsetValue($name);
}