You are here

workspace-add-list.html.twig in Workspace 8

Default theme implementation to present a list of custom Workspace types.

Available variables:

  • types: A collection of all the available custom Workspace types. Each Workspace type contains the following:

    • link: A link to add a Workspace of this type.

File

templates/workspace-add-list.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to present a list of custom Workspace types.
  5. *
  6. * Available variables:
  7. * - types: A collection of all the available custom Workspace types.
  8. * Each Workspace type contains the following:
  9. * - link: A link to add a Workspace of this type.
  10. *
  11. * @see template_preprocess_block_content_add_list()
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. <ul class="admin-list">
  17. {% for type in types %}
  18. <li class="clearfix">
  19. <a href="{{ type.url }}"><span class="label">{{ type.label }}</span></a>
  20. </li>
  21. {% endfor %}
  22. </ul>