Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / module / content-entity / templates / model-example.html.twig.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/templates/model-example.html.twig.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/templates/model-example.html.twig.twig
new file mode 100644 (file)
index 0000000..e88cf23
--- /dev/null
@@ -0,0 +1,21 @@
+{{ '{#' }}
+/**
+ * @file
+ * Default theme implementation to present {{ entity_type_label|article|lower }} entity.
+ *
+ * This template is used when viewing a registered {{ entity_type_label|lower }}'s page,
+ * e.g., {{ entity_base_path }})/123. 123 being the {{ entity_type_label|lower }}'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_{{ entity_type_id }}()
+ */
+{{ '#}' }}{% verbatim %}
+<article{{ attributes }}>
+  {% if content %}
+    {{- content -}}
+  {% endif %}
+</article>{% endverbatim %}