D8 Webforms Predefined Options How would you use/access D8 Webforms Predefined Options (such as days,months,gender, marital status,country etc,etc) in code, say in MYMODULE_form_alter(&amp;$form, FormStateInterface $form_state, $form_id). Where is the predefined options data stored ?

For example, for country codes options ["AF"=>"Afghanistan","AL"=>"Albania",....,"US"=>"United States",..] how would you get country name from country code.

Your aasistance will be greatly appreciated.
You can alter the options in this hook:

/**
 * Alter form options by id.
 *
 * @param array $options
 *   An associative array of options.
 * @param array $element
 *   The form element that the options is for.
 * @param string $options_id
 *   The form options id. Set to NULL if the options are custom.
 */
function hook_webform_options_alter(array &amp;$options, array &amp;$element, $options_id = NULL) {


See http://cgit.drupalcode.org/webform/tree/webform.api.php

The options are stored in the config entity webform_options, see http://cgit.drupalcode.org/webform/tree/src/Entity/WebformOptions.php