Call to undefined method Drupal\video_filter\Plugin\CKEditorPlugin\VideoFilter::t()

Created on 7 September 2022, about 2 years ago
Updated 7 May 2023, over 1 year ago

Problem/Motivation

Upon upgrading to 8.x-1.1, I am unable to use any instance of CKeditor due to this undefined method.

Error: Call to undefined method Drupal\\video_filter\\Plugin\\CKEditorPlugin\\VideoFilter::t() in Drupal\\video_filter\\Plugin\\CKEditorPlugin\\VideoFilter->getButtons() (line 56 of video_filter/src/Plugin/CKEditorPlugin/VideoFilter.php)

I believe this is due to the fix in #3134309: t() calls should be avoided in classes β†’ not implementing StringTranslationTrait in the class.

Steps to reproduce

Upgrade to 8.x-1.1 and attempt to edit some content that has a WYSIWYG field with CKeditor.

Proposed resolution

Implement StringTranslationTrait on VideoFilter.

Remaining tasks

Create issue branch and create commit.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pianomansam

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

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