Fatal error in bootstrap_barrio_preprocess

Created on 21 May 2023, about 1 year ago
Updated 29 November 2023, 7 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.69.0 2024