- Drupal 8 Development Cookbook(Second Edition)
- Matt Glaman
- 116字
- 2025-04-04 18:20:51
How it works...
The Contextual links module provides privileged users with shortcut links to modify blocks or content. The contextual links are toggled by clicking on Edit in the toolbar. The Edit link toggles the visibility of contextual links on the page. Previously, in Drupal 7, contextual links appeared as cogs when a specific region was hovered over.
The Quick Edit module builds on the contextual links features. It allows field formatters, which display field data, to describe how they will interact. By default, Quick Edit sets this to a form. Clicking on an element will use JavaScript to load a form and save data via AJAX calls.
Quick Edit will not work on administrative pages.