Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / plugin / views / style-template.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-template.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-template.twig
new file mode 100644 (file)
index 0000000..4860e08
--- /dev/null
@@ -0,0 +1,22 @@
+{{ '{#' }}
+/**
+ * @file
+ * Default theme implementation for a view template to display a list of rows.
+ *
+ * Available variables:
+ * - attributes: HTML attributes for the container.
+ * - rows: A list of rows.
+ *   - attributes: The row's HTML attributes.
+ *   - content: The row's contents.
+ * - title: The title of this group of rows. May be empty.
+ *
+ * @see template_preprocess_views_style_{{ plugin_id }}()
+ */
+{{ '#}' }}{% verbatim %}
+<div{{ attributes }}>
+
+  {% for row in rows %}
+    <div{{ row.attributes }}>{{ row.content }}</div>
+  {% endfor %}
+
+</div>{% endverbatim %}