menu-link-form.html.twig

Same filename in this branch
  1. 10 core/themes/stable9/templates/admin/menu-link-form.html.twig
  2. 10 core/modules/menu_ui/templates/menu-link-form.html.twig
Same filename in other branches
  1. 11.x core/themes/stable9/templates/admin/menu-link-form.html.twig
  2. 11.x core/themes/claro/templates/menu-link-form.html.twig
  3. 11.x core/modules/menu_ui/templates/menu-link-form.html.twig

Theme override for a menu link form.

Two-column template for the menu link add/edit form.

This template will be used when a menu link form specifies 'menu_link_form' as its #theme callback. Otherwise, by default, menu_link add/edit forms will be themed by form.html.twig.

Available variables:

  • form: The menu link add/edit form.

See also

claro_form_menu_link_content_form_alter()

File

core/themes/claro/templates/menu-link-form.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a menu link form.
  5. *
  6. * Two-column template for the menu link add/edit form.
  7. *
  8. * This template will be used when a menu link form specifies
  9. * 'menu_link_form' as its #theme callback. Otherwise, by default,
  10. * menu_link add/edit forms will be themed by form.html.twig.
  11. *
  12. * Available variables:
  13. * - form: The menu link add/edit form.
  14. *
  15. * @see claro_form_menu_link_content_form_alter()
  16. */
  17. #}
  18. {% extends '@claro/form/form-two-columns.html.twig' %}
  19. {% block main %}
  20. {{ form|without('advanced', 'menu_parent', 'actions') }}
  21. {% endblock %}
  22. {% block secondary %}
  23. <div class="entity-meta">
  24. {{ form.menu_parent }}
  25. {{ form.advanced }}
  26. </div>
  27. {% endblock %}
  28. {% block footer %}
  29. {{ form.actions }}
  30. {% endblock %}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.