From 054fce418b60789173af05de8260be3c4d68814b Mon Sep 17 00:00:00 2001
From: florenttorregrosa <florenttorregrosa@2388214.no-reply.drupal.org>
Date: Thu, 8 Sep 2016 11:54:01 +0200
Subject: [PATCH] Issue #2797007 by Grimreaper: Link not rendered in bootstrap
 panel

---
 src/Plugin/Preprocess/BootstrapPanel.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/Plugin/Preprocess/BootstrapPanel.php b/src/Plugin/Preprocess/BootstrapPanel.php
index ffa8e42..8a5d628 100644
--- a/src/Plugin/Preprocess/BootstrapPanel.php
+++ b/src/Plugin/Preprocess/BootstrapPanel.php
@@ -116,6 +116,12 @@ class BootstrapPanel extends PreprocessBase implements PreprocessInterface {
       }
     }
 
+    // Ensure we render HTML from heading.
+    $heading = $variables->offsetGet('heading');
+    if ($heading) {
+      $variables->offsetSet('heading', array('#markup' => $heading));
+    }
+
     // Ensure there is a valid panel state.
     if (!$variables->offsetGet('panel_type')) {
       $variables->offsetSet('panel_type', 'default');
-- 
2.1.4

