Found 1 WARNING AFFECTING

Created on 31 December 2019, almost 5 years ago
Updated 30 April 2024, 8 months ago

FILE: /currency_converter_api/src/Plugin/CurrencyConverterApiProvider/FreeCurrencyConverterApi.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
30 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------

Your code:-
'#title' => t('API key'),

Solution:-
'#title' => $this->t('API key'),

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇮🇳India rohitrajputsahab Uttam Nagar, Delhi

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024