- First commit to issue fork.
- @urvashi_vora opened merge request.
When attempting to unit test a widget which extends the StringTextfieldWidget the traditional method of mocking the string translation service fails and an error is produced Call to undefined function Drupal\Core\Field\Plugin\Field\FieldWidget\t()
.
PluginBase is using StringTranslationTrait but many of the child plugins are not utilizing it properly. Use $this->t() instead of t() for string translation calls for all classes extending PluginBase.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.