Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since the CKEditorAdvancedTab
class now implements ContainerFactoryPluginInterface
, it can inject the string_translation service in its constructor, which will then pass it to $this->setStringTranslation()
.
Instead of t()
, the class should also use $this->t()
to translate its strings.
Comments
Comment #4
apadernoComment #5
apaderno