After installing module (using composer), and adding the Wistia video field to the content type -- I am getting the next error:
Fatal error: Declaration of Drupal\wistia_integration\Plugin\Field\FieldFormatter\WistiaFieldFormatter::create(Symfony\Component\DependencyInjection\ContainerInterface $container, $plugin_id, $plugin_definition, Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings) must be compatible with Drupal\Core\Field\FormatterBase::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) in /var/www/docroot/modules/contrib/wistia_integration/src/Plugin/Field/FieldFormatter/WistiaFieldFormatter.php on line 0
I assume this is because of an outdated, as for Drupal 8.8, constructor parameters list.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3100824-4.patch | 1.32 KB | chintan.vyas |
| #2 | wrong-declaration-of-wistiafieldformatter-create-3100824-1.patch | 1.11 KB | NightHunterSV |
Comments
Comment #2
NightHunterSV commentedPatch attached resolves an issue for me.
Comment #3
hamrant commentedLooks good
Comment #4
chintan.vyas commentedAdded a modified patch to use the renderer service.
Comment #6
chintan.vyas commented