I'm creating a custom module in Drupal 8.4.4. I put several menu links under the
scrape.scrape_form: title: 'Scrape' parent: system.admin_config_development route_name: scrape.scrape_form description: 'Scrape content from ccad.edu' weight: 10 scrape.scrape_images_form: title: 'Images Scrape' parent: system.admin_config_development route_name: scrape.scrape_images_form description: 'Scrape images from ccad.edu' weight: 20 ...
This is working fine, but now that whole menu is getting a bit too long.
I wanted to wrap up all of my links under one 'header' link under the
Development menu. I added this at the top of
scrape.migration: title: 'Migration' description: 'Migration functions' parent: system.admin_config_development route:<nolink> menu_name: scrape.migration route_name: scrape.migration
But when I try to rebuild the cache, I get this error:
The website encountered an unexpected error. Please try again later. Symfony\Component\Routing\Exception\RouteNotFoundException: Route "scrape.migration" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName()
How can I make a new, non-navigable parent link under
Development, to put my custom links under?
Edit 4k4's comment is correct, but my parent link is very small and greyed out.
scrape.migration: title: 'Migration' description: 'Migration functions' parent: system.admin_config_development menu_name: scrape.migration route_name: <nolink>
How can I get a full-height, dark-font header link?