Fatal error in bootstrap_barrio_preprocess

Created on 21 May 2023, over 1 year ago
Updated 29 November 2023, 12 months ago

Problem/Motivation

Line 711 in bootstrap_barrio.theme

if (in_array('error', $variables['attributes']['class']->value())) {

is throwing the fatal error:

Error: Call to undefined method Drupal\Core\StringTranslation\TranslatableMarkup::value() in bootstrap_barrio_preprocess() (line 710 of .../dev/web/themes/contrib/bootstrap_barrio/bootstrap_barrio.theme)

My site is multilingual.

Steps to reproduce

Unclear...

Proposed resolution

Find an alternative to $variables['attributes']['class']->value()

I've just commented this out since it doesn't seem critical anyway. It's adding the class "is-invalid" ? This wasn't in Bootstrap Barrio 4.33 ...

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Closed: works as designed

Version

5.5

Component

Code

Created by

🇨🇦Canada alienzed

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024