From b486db7e8d20a96c837b74e467dda49e2cf7dfac Mon Sep 17 00:00:00 2001 From: maxk <maxk@3505467.no-reply.drupal.org> Date: Tue, 13 Feb 2018 22:55:06 -0500 Subject: [PATCH] Issue #2909967 by maxk: Error on rendering checkbox labels in forms --- bootstrap_barrio.theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap_barrio.theme b/bootstrap_barrio.theme index a2e77e5..5298363 100644 --- a/bootstrap_barrio.theme +++ b/bootstrap_barrio.theme @@ -310,7 +310,7 @@ function bootstrap_barrio_preprocess_block(&$variables) { } function bootstrap_barrio_preprocess_form_element(&$variables) { - if (!isset($variables['label']['#title'])) { + if ( is_object($variables['label']['#title']) && !$variables['label']['#title'] instanceof \Drupal\Component\Render\MarkupInterface) { $variables['input_title'] = NULL; } elseif ( is_object($variables['label']['#title']) ) { -- GitLab