Contribution Date
              Technology
              
          Contribution Project
              
          Contribution Details
              @rrmore comment is correct at #9; one should not use dashes `-` in template suggestion names but rather underscores `_`. So the following works as expected.
/**
 * Implementation of hook_theme_suggestions_form_element_alter().
 */
function manager_theme_suggestions_form_element_alter(array &$suggestions, array $variables) {
  if (\Drupal::service('path.current')->getPath() == '/user/login') {
    $suggestions[] = $variables['theme_hook_original'] . '__user_login';  // Notice the use of underscore 
  }
}
Issue Status
              Fixed
          Contribution Issue Link
              
          Contribution Link
              
          Files count
              0
          Patches count
              0