diff --git a/bootstrap_barrio.theme b/bootstrap_barrio.theme index a2e77e54f3c7a627ca43748f6c1343d0dc194ec0..52983636df5679de8aa15be1c60ac171ce124ebc 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']) ) {