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.
Fatal error: Declaration of Drupal\geshifield\Plugin\Field\FieldFormatter\GeshiFieldDefaultFormatter::viewElements() must be compatible with Drupal\Core\Field\FormatterInterface::viewElements(Drupal\Core\Field\FieldItemListInterface $items, $langcode) in /opt/lampp/htdocs/drupal-8-agnostic/modules/geshifilter/geshifield/src/Plugin/Field/FieldFormatter/GeshiFieldDefaultFormatter.php on line 24
It looks like like $langcode needs to be added to viewElements() in GeshiFieldDefaultFormatter to properly extend FormatterBase's viewElements().
I am using Drupal 8.0.1
Comment | File | Size | Author |
---|---|---|---|
#2 | added_langcode_to_viewElements-2629930-1.patch | 696 bytes | meaton |
|
Comments
Comment #2
meaton CreditAttribution: meaton commentedComment #3
meaton CreditAttribution: meaton commentedComment #5
yukare CreditAttribution: yukare commentedI commited your patch, thanks. Geshifield need tests and maybe more work. Please use and test it and report any issue you find, i will do a release soon and would be good find any issue before this.
Comment #6
meaton CreditAttribution: meaton commentedWill do! I am using Geshi Filter for a project I am working on and have had some issue, but the issues seem to revolve around using the module in a Pantheon environment. I will try and prove this out and post anything that I uncover. Thanks!