enter image description here

I need to create Config link while enabling module. In routing file, I have mention the path name of config form, but its not directly show in the Configuration page. Below is my routing code.

path: '/admin/config/usertimezone/usertimezoneconfig'
 _form: '\Drupal\dm_user_timezone\Form\UserTimezoneSettingForm'
 _title: 'User timezone page configuration'
 _permission: 'access administration pages'
 _admin_route: TRUE 

My folder sructure looks like this. Need help what I missed here.

enter image description here

1 Answer 1


Add configure: dm_user_timezone.user_timezone_settings to the dm_user_timezone.info.yml file. The configure option is documented on drupal.org.

  • Thank you for your help. It works. :) One more question here, How should I display my module link on Configuration (/admin/config) page like People->Account Settings?
    – latikas
    Oct 14, 2022 at 15:45
  • @latikas - Find a contrib module that does the same and then follow its sample.
    – leymannx
    Oct 14, 2022 at 17:16
  • 2
    @latikas That is a different question that should be asked as new question. Comments should be used when there is anything not clear in the given answer, not to ask unrelated questions.
    – apaderno
    Oct 15, 2022 at 18:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.