Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix all viewElements() compatibility with FormatterInterface::viewElements #57

Open
1 task
otarza opened this issue Apr 28, 2017 · 0 comments
Open
1 task

Comments

@otarza
Copy link

otarza commented Apr 28, 2017

After adding addthis field to a content type and try to visit form display I get following error:

PHP Fatal error: Declaration of Drupal\\addthis\\Plugin\\Field\\FieldFormatter\\AddThisBasicButtonFormatter::viewElements() must be compatible with Drupal\\Core\\Field\\FormatterInterface::viewElements(Drupal\\Core\\Field\\FieldItemListInterface $items, $langcode) in /modules/contrib/addthis/src/Plugin/Field/FieldFormatter/AddThisBasicButtonFormatter.php on line 26

Fix:

  • Add $langcode parameter to viewElements() method of 3 FieldFormatters that are implemented in this module.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant