menu-link-content.html.twig in Menu item content fields 8
Default theme implementation to present a menu item entity.
Available variables:
- content: Menu item content.
- title_prefix: Additional output populated by modules, intended to be displayed in front of the main title tag that appears in the template.
- title_suffix: Additional output populated by modules, intended to be displayed after the main title tag that appears in the template.
- view_mode: View mode; for example, "teaser" or "full".
- attributes: HTML attributes for the containing element.
- title_attributes: Same as attributes, except applied to the main title tag that appears in the template.
File
templates/menu-link-content.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to present a menu item entity.
- *
- * Available variables:
- * - content: Menu item content.
- * - title_prefix: Additional output populated by modules, intended to be
- * displayed in front of the main title tag that appears in the template.
- * - title_suffix: Additional output populated by modules, intended to be
- * displayed after the main title tag that appears in the template.
- * - view_mode: View mode; for example, "teaser" or "full".
- * - attributes: HTML attributes for the containing element.
- * - title_attributes: Same as attributes, except applied to the main title
- * tag that appears in the template.
- *
- * @ingroup themeable
- */
- #}
- <div{{ attributes }}>
- {{ title_suffix.contextual_links }}
- {{ content }}
- </div>