You are here

function yamlform_update_8058 in YAML Form 8

Issue #2819319: Add Time element (with timepicker).

File

includes/yamlform.update.inc, line 1201
YAML Form module update hooks.

Code

function yamlform_update_8058() {
  $settings_config = \Drupal::configFactory()
    ->getEditable('yamlform.settings');
  $settings_config
    ->set('elements.types.yamlform_time', 'yamlform_time');
  $settings_config
    ->save();
}