From 3b9a418c9669a9e6f223f1f5eeed8353653ccec5 Mon Sep 17 00:00:00 2001
From: Emanuel Righetto <posta@emanuelrighetto.it>
Date: Sat, 28 Jan 2017 12:30:08 +0100
Subject: [PATCH] Missing twig template

---
 iubenda_integration.module                         |  2 --
 ...k--iubenda-integration-privacy-policy.html.twig | 23 ++++++++++++++++++++++
 2 files changed, 23 insertions(+), 2 deletions(-)
 create mode 100644 templates/block--iubenda-integration-privacy-policy.html.twig

diff --git a/iubenda_integration.module b/iubenda_integration.module
index 6bf0823..48885e8 100644
--- a/iubenda_integration.module
+++ b/iubenda_integration.module
@@ -106,7 +106,6 @@ function iubenda_integration_get_form_ids() {
 /**
  * Implements hook_theme().
  */
-/*
 function iubenda_integration_theme($existing, $type, $theme, $path) {
   return array(
     'block__iubenda_integration_privacy_policy' => array(
@@ -124,7 +123,6 @@ function iubenda_integration_theme($existing, $type, $theme, $path) {
     ),
   );
 }
-*/

 /**
  * Build the Iubenda privacy policy text.
diff --git a/templates/block--iubenda-integration-privacy-policy.html.twig b/templates/block--iubenda-integration-privacy-policy.html.twig
new file mode 100644
index 0000000..ece36e8
--- /dev/null
+++ b/templates/block--iubenda-integration-privacy-policy.html.twig
@@ -0,0 +1,23 @@
+{#
+/**
+ * @file
+ * @file
+ * Default theme implementation to display Iubenda privacy policy.
+ *
+ * Available variables:
+ * - $pre_text: the Privacy Policy text to be shown before the Iubenda link.
+ * - $link: the Privacy Policy link.
+ * - $post_text: the Privacy Policy text to be shown after the Iubenda link.
+ *
+ * @see template_preprocess_block()
+ *
+ * @ingroup themeable
+ */
+#}
+<div{{ attributes }}>
+  <p>
+    {{ pre_text }}
+    {{ link }}
+    {{ post_text }}
+  </p>
+</div>
--
2.10.1 (Apple Git-78)
