- Drupal 8 Development Cookbook(Second Edition)
- Matt Glaman
- 134字
- 2025-04-04 18:20:51
How it works...
Menus and links are part of Drupal core. The ability to make custom menus and menu links is provided through the Menu UI module. This module is enabled on the standard installation profile, but may not be in others.
The Link input of the menu link form allows you to begin typing node titles and easily linking them to existing content. This was a piece of functionality not available in previous versions of Drupal. It will automatically convert the title into the internal path for you. Link input also accepts a regular path, such as /node/1 or an external path.
You must have a valid path; you cannot add empty links to a menu. There is work being done to allow adding empty or ID selector link paths--refer to https://www.drupal.org/node/1543750.