Sorry if this question is so basic, I'm new about drupal.

So far which I know, we can create custom module or page in drupal 8 so we can access it with http://www.oursite.com/custompage.

What I need? Is possible to create custom module or page which can show in admin area? In this case, I want to sync a lot of accounts from another system/web app to my drupal site so I don't need to create manually using "people menu" in admin area. Or is there any best way to do that?

Can anyone provide a helpful articles to accomplish this? Help would so appreciated.

closed as too broad by Kevin, Pierre.Vriens, DRUPWAY, Neograph734, kiamlaluno Jul 19 '17 at 10:27

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • What are you asking - how to have a module show up in admin area or how to import users from another site? – user21641 Jul 19 '17 at 3:38
  • Main question is "how to have a module show up in admin area". With the module I will use to sync data from other applications to drupal site – Ugy Astro Jul 19 '17 at 3:40

Main question is "how to have a module show up in admin area".

  1. Create your custom module
  2. Create your custom route in the "your_module.routing.yml" - file


  path: '/admin/config/your_module/import'
    _form: '\Drupal\your_module\Form\ImportForm'
    _title: 'Import XYZ'
    _permission: 'administer site configuration'
  1. Define the link in the "your_module.links.menu.yml" - file


  title: 'Import XYZ'
  route_name: your_module.admin_settings
  description: 'Import XYZ'
  parent: system.admin_config_system
  weight: 100

... thats it! In step 3 this line is the important part:

parent: system.admin_config_system

If you need a menu entry in "structure" you can use:

parent: system.admin_structure

Just read other xyz.links.menu.yml - files to find different parent-path.

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