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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

meaton created an issue. See original summary.

meaton’s picture

Status: Active » Needs review
FileSize
696 bytes
meaton’s picture

Title: Fatal Error When Trying to Managed the Display of a Field » Fatal Error When Trying to Manage the Display of a Field with a GeSHi Filter

  • yukare committed 9007f19 on 8.x-1.x authored by meaton
    Issue #2629930 by meaton: Fatal Error When Trying to Manage the Display...
yukare’s picture

Status: Needs review » Fixed

I 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.

meaton’s picture

Will 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!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.