{% if class_name is defined and "ConfigFormBase" == form_type %}

{{ module_name }}.{{form_id}}:
  path: '/admin/config/{{ module_name }}/{{ class_name_short }}'
  defaults:
    _form: '\Drupal\{{ module_name }}\Form\{{ class_name }}'
    _title: '{{ class_name }}'
  requirements:
    _permission: 'access administration pages'
  options:
    _admin_route: TRUE
{% endif %}


{% if class_name is defined %}

{{ module_name }}.{{form_id}}:
  path: '/admin/config/{{ module_name }}/{{ class_name_short }}'
  defaults:
    _form: '\Drupal\{{ module_name }}\Form\{{ class_name }}'
    _title: '{{ class_name }}'
  requirements:
    _permission: 'access administration pages'
  options:
    _admin_route: TRUE
{% endif %}


Remove check on form_type parameter in routing template
Remove check on form_type parameter in routing template
