Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Description

This module makes it possible to create a menu item without a link.

How to use

  • Install the module
  • Add the contents of menu_link_placeholder.services.yml to your services.yml
  • Change your menu.html.twig to have something like:
{% if item.no_link %}
  <span {{ item.url.attributes }}>{{ item.title|raw }}</span>
{% else %}
  {{ link(item.title, item.url) }}
{% endif %}

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Administration tools
  • Created by danielbeeke on , updated