How can I remove the asterisk for required fields programatically? How can I remove the asterisk Drupal inserts for required fields programatically (not hiding with CSS)?

In Drupal 7, there was theme_form_required_marker(), but that's gone from Drupal 8.
This can be removed from the theme.  I'm using a Bootstrap subtheme, so in my case I copied form-element-label-html.twig from the bootstrap templates directory into my subtheme's templates directory, then changed the following line:

  {%- if required -%}
    &lt;span class="form-required"&gt;*&lt;/span&gt;
  {%- endif -%}


To:

  {%- if required -%}
    {# &lt;span class="form-required"&gt;*&lt;/span&gt; #}
  {%- endif -%}


Clear caches and it's done.