log-add-list.html.twig in Log entity 8
Default theme implementation to list log types available for adding log.
This list is displayed on the Add log admin page.
Available variables:
- types: A list of log types, each with the following properties:
- add_link: Link to create a piece of content of this type.
See also
1 theme call to log-add-list.html.twig
- LogController::addPage in src/
Controller/ LogController.php - Displays add content links for available content types.
File
templates/log-add-list.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to list log types available for adding log.
- *
- * This list is displayed on the Add log admin page.
- *
- * Available variables:
- * - types: A list of log types, each with the following properties:
- * - add_link: Link to create a piece of content of this type.
- *
- * @see template_preprocess_log_add_list()
- *
- * @ingroup themeable
- */
- #}
- {% if types is not empty %}
- <dl>
- {% for type in types %}
- <dt>{{ type.add_link }}</dt>
- {% endfor %}
- </dl>
- {% else %}
- <p>
- {% set create_log = path('entity.log_type.add_form') %}
- {% trans %}
- You have not created any log types yet. Go to the <a href="{{ create_log }}">log type creation page</a> to add a new log type.
- {% endtrans %}
- </p>
- {% endif %}