Commit 534c3cd2 authored by Sorin Dediu's avatar Sorin Dediu Committed by rembrandx
Browse files

Issue #3293294 by sdstyles: Fix warning: Array to string conversion in...

Issue #3293294 by sdstyles: Fix warning: Array to string conversion in Drupal\Component\Utility\Html::getClass()
parent 1e83d913
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -84,7 +84,8 @@
{% if attributes.id|default %}
  {% set heading_id = attributes.id|clean_class|replace({'_': '-'}) ~ '-heading' %}
{% else %}
  {% set heading_id = 'heading-' ~ heading|clean_class|replace({'_': '-'}) ~ '-' ~ ("now"|date("Ydm")) %}
  {% set heading_markup = heading['#markup'] ?: heading %}
  {% set heading_id = 'heading-' ~ heading_markup|clean_class|replace({'_': '-'}) ~ '-' ~ ("now"|date("Ydm")) %}
{% endif %}

{# Always use a descriptive label (block description) for your block