You are here

micon-package.html.twig in Micon 2.x

Same filename and directory in other branches
  1. 8 templates/micon-package.html.twig

micon-package.html.twig Default theme implementation to present Micon package data of type ICON.

See also

template_preprocess_micon_package_icon()

File

templates/micon-package.html.twig
View source
  1. {#
  2. /**
  3. * @file micon-package.html.twig
  4. * Default theme implementation to present Micon package data of type ICON.
  5. *
  6. * @see template_preprocess_micon_package_icon()
  7. *
  8. * @ingroup themeable
  9. */
  10. #}
  11. {%
  12. set classes = [
  13. 'micon-package',
  14. 'micon-package-' ~ type,
  15. ]
  16. %}
  17. {{ attach_library('micon/micon.admin') }}
  18. <div{{ attributes.addClass(classes) }}>
  19. {% if content %}
  20. {{- content -}}
  21. {% endif %}
  22. </div>