You are here

formatter-add-list.html.twig in Custom Formatters 8.3

Default theme implementation to list formatter types for adding a formatter.

This list is displayed on the Add formatter admin page.

Available variables:

  • types: A list of formatter types, each with the following properties:

    • add_link: Link to create a formatter of this type.
    • description: Description of this formatter type.

File

templates/formatter-add-list.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to list formatter types for adding a formatter.
  5. *
  6. * This list is displayed on the Add formatter admin page.
  7. *
  8. * Available variables:
  9. * - types: A list of formatter types, each with the following properties:
  10. * - add_link: Link to create a formatter of this type.
  11. * - description: Description of this formatter type.
  12. *
  13. * @see template_preprocess_formatter_add_list()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <dl>
  19. {% for type in types %}
  20. <dt>{{ type.add_link }}</dt>
  21. <dd>{{ type.description }}</dd>
  22. {% endfor %}
  23. </dl>