bootstrap_italia-8.x-0.x-dev/components/components-0x/link-list/menu-recursive.twig

components/components-0x/link-list/menu-recursive.twig
{#
/**
 * @file
 * Template for link-list recursive component.
 * Docs: https://italia.github.io/bootstrap-italia/docs/organizzare-i-contenuti/liste-di-link/#liste-annidate
 * Latest revision: v2.6.1
 *
 * Available config:
 * + menu_name: The machine name of the menu.
 * + items: A nested list of menu items. Each menu item contains:
 *   + attributes: HTML attributes for the menu item.
 *   + below: The menu item child items.
 *   + title: The menu link title.
 *   + url: The menu link url, instance of \Drupal\Core\Url
 *   + localized_options: Menu link localized options.
 *   + is_expanded: TRUE if the link has visible children within the current
 *     menu tree.
 *   + is_collapsed: TRUE if the link has children within the current menu tree
 *     that are not currently visible.
 *   + in_active_trail: TRUE if the link is in the active trail.
 * + attributes: drupal attributes
 * + view_link_description: bool
 * + large: bool - increment text size on all items
 * + bold: bool - increment text weight on all active items
 * + icon_position: left | right
 * + icon_type: string - es: 'it-icon-name'
 * + icon_color: primary | secondary | success | warning | danger | light | white
 * + active_items_large: bool - increment text size on only active items (not enable both with large)
 * + active_items_bold: bool - increment text weight on only active items (not enable both with bold)
 *
 * items and attributes are mandatory
 */
#}
{% apply spaceless %}
  {% include '@bi-bcl/deprecated.html.twig' with {
    old: 'bootstrap_italia_components/link-list/menu-recursive.twig',
    new: 'bi-bcl/list/menu-recursive.html.twig',
  } %}

  {# Redirect to new component #}
  {% include '@bi-bcl/list/menu-recursive.html.twig' with {
    menu_name: menu_name,
    items: items,
    attributes: attributes,
    show_link_description: view_link_description,
    large: large,
    bold: bold,
    active_items_large: active_items_large,
    active_items_bold: active_items_bold,
    icon_position: icon_position,
    icon_type: icon_type,
    icon_color: icon_color,
    wrapper_component: true
  } %}
{% endapply %}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc