Closed (fixed)
Project:
Short Scale Formatter
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2024 at 19:55 UTC
Updated:
19 Feb 2024 at 21:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
avpadernoExcept I missed some changes, the code is already compatible with Drupal 10. The module just needs to declare itself compatible with Drupal 10.
I do not have a site (even a test site) running on Drupal 10, so I cannot verify if there is anything that needs to be fixed.
Comment #3
chucksimply commentedWould it be possible to declare the D10 compatibility in the info file on a new dev release? This way I don't have to do workarounds getting it installed with composer.
Comment #4
dineshkumarbollu commentedThe module is compatible with D10 only below issues are there.Will Provide patch.
Comment #5
dineshkumarbollu commentedComment #6
chucksimply commentedThanks for the patch! Installed, but when visiting the fields page... received this error.
Fatal error: Could not check compatibility between Drupal\short_scale_formatter\Plugin\Field\FieldFormatter\ShortScaleFormatter::create(Drupal\short_scale_formatter\Plugin\Field\FieldFormatter\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) and Drupal\Core\Field\FormatterBase::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition), because class Drupal\short_scale_formatter\Plugin\Field\FieldFormatter\ContainerInterface is not available in /web/modules/contrib/short_scale_formatter/src/Plugin/Field/FieldFormatter/ShortScaleFormatter.php on line 58Comment #7
chucksimply commentedNeeded the use statement
use Symfony\Component\DependencyInjection\ContainerInterface;added to the top of src/Plugin/Field/FieldFormatter/ShortScaleFormatter.php
I'll try uploading a new patch here shortly. Once this statement was added, seems to be working as expected!
Comment #8
chucksimply commentedUpdated new patch to account for the above.
Comment #9
chucksimply commentedNew patching working flawlessly.
Comment #10
avpadernoComment #12
avpadernoComment #14
avpaderno