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.
Problem/Motivation
When trying to use this module with D8, the foolowing error occurs when trying to setup the display (.../admin/config/people/accounts/display) :
Fatal error: Declaration of Drupal\social_profile_field\Plugin\Field\FieldFormatter\SocialProfileFieldDefaultFormatter::viewElements() must be compatible with Drupal\Core\Field\FormatterInterface::viewElements(Drupal\Core\Field\FieldItemListInterface $items, $langcode) in /mnt/srv/htdocs/t2t_D8/modules/social_profile_field/src/Plugin/Field/FieldFormatter/SocialProfileFieldDefaultFormatter.php on line 27
Comment | File | Size | Author |
---|---|---|---|
#3 | social_profile_field-fatal-2623602-3.patch | 785 bytes | sanchiz |
Comments
Comment #2
sanchiz CreditAttribution: sanchiz at FFW, Five Jars, Drupal Ukraine Community for Drupal Ukraine Community commentedThank you, @slowflyer for issue! We'll take a look.
Comment #3
sanchiz CreditAttribution: sanchiz at FFW, Five Jars, Drupal Ukraine Community for Drupal Ukraine Community commentedPath in attachment.
Comment #5
sanchiz CreditAttribution: sanchiz at FFW, Five Jars, Drupal Ukraine Community for Drupal Ukraine Community commentedCommitted.
Available now in 8.x-1.x-dev or in 8.x-0.2 and later once released.
Comment #7
sanchiz CreditAttribution: sanchiz at FFW, Five Jars, Drupal Ukraine Community for Drupal Ukraine Community commented