webhook.html.twig in Webhooks 8
Default theme implementation to present a webhook entity.
This template is used when viewing a registered webhook's page, e.g., /admin/content/webhook)/123. 123 being the webhook's ID.
Available variables:
- content: A list of content items. Use 'content' to print all content, or print a subset such as 'content.title'.
- attributes: HTML attributes for the container element.
See also
File
modules/webhook/templates/webhook.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to present a webhook entity.
- *
- * This template is used when viewing a registered webhook's page,
- * e.g., /admin/content/webhook)/123. 123 being the webhook's ID.
- *
- * Available variables:
- * - content: A list of content items. Use 'content' to print all content, or
- * print a subset such as 'content.title'.
- * - attributes: HTML attributes for the container element.
- *
- * @see template_preprocess_webhook()
- */
- #}
- <article{{ attributes }}>
- {% if content %}
- {{- content -}}
- {% endif %}
- </article>