Problem/Motivation
Formatter is not working with tablefield field type, throwing an error due to wrong call in the const
TypeError: Drupal\charts_field_formatter\Plugin\Field\FieldFormatter\ChartsFieldFormatter::__construct(): Argument #10 ($uuidService) must be of type Drupal\Component\Uuid\Php, Drupal\Component\Uuid\Com given, called in D:\MAMP\htdocs\cms-drupal-d8\web\modules\contrib\charts_field_formatter\src\Plugin\Field\FieldFormatter\ChartsFieldFormatter.php on line 70 in Drupal\charts_field_formatter\Plugin\Field\FieldFormatter\ChartsFieldFormatter->__construct() (line 37 of modules\contrib\charts_field_formatter\src\Plugin\Field\FieldFormatter\ChartsFieldFormatter.php).
Steps to reproduce
The field tablefield is not rendering, It throws an error
Proposed resolution
Correct the call of the service in the constructor, replace Php $uuidService by UuidInterface $uuid_service.
Comments
Comment #2
matio89 commentedAttached the patch, including enhancements and DI fixes (after running phpcs and phpcbf).
Comment #3
matio89 commentedFixing the patch, and attach it.
Comment #4
matio89 commentedComment #5
matio89 commentedComment #6
omar alahmedFixed here #3369229: Automated Drupal 10 compatibility fixes, thank you @matio89