The module uses shs StringTranslationTrait instead of the core one

Created on 8 March 2023, over 1 year ago

Problem/Motivation

The module uses the StringTranslationTrait from the shs module instead of from core. It causes problems if the shs module is not installed:
See ohdear_integration/src/Commands/OhDearIntegrationCommands.php

Fatal error: Trait "Drupal\shs\StringTranslationTrait" not found in /app/docroot/modules/contrib/ohdear_integration/src/Commands/OhDearIntegrationCommands.php on line 15

Steps to reproduce

It is enough to enable the module by drush (without shs) or check the recent log messages.

Proposed resolution

Use Drupal\Core\StringTranslation\StringTranslationTrait

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇭🇺Hungary peter_serfozo

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

Comments & Activities

Production build 0.69.0 2024