Contribution Date
Technology
Contribution Project
Contribution Details
When I use this patch, I get following error,
ArgumentCountError: Too few arguments to function Drupal\commerce_product\Plugin\Field\FieldWidget\ProductVariationWidgetBase::__construct(), 6 passed in /app/web/modules/contrib/commerce/modules/product/src/Plugin/Field/FieldWidget/ProductVariationFieldWidget.php on line 66 and exactly 7 expected in Drupal\commerce_product\Plugin\Field\FieldWidget\ProductVariationWidgetBase->__construct() (line 59 of /app/web/modules/contrib/commerce/modules/product/src/Plugin/Field/FieldWidget/ProductVariationWidgetBase.php)
#0 /app/web/modules/contrib/commerce/modules/product/src/Plugin/Field/FieldWidget/ProductVariationFieldWidget.php(66): Drupal\commerce_product\Plugin\Field\FieldWidget\ProductVariationWidgetBase->__construct('commerce_produc...', Array, Object(Drupal\Core\Field\BaseFieldDefinition), Array, Array, Object(Drupal\Core\Entity\EntityTypeManager))
#1 /app/web/modules/contrib/commerce/modules/product/src/Plugin/Field/FieldWidget/ProductVariationFieldWidget.php(99): Drupal\commerce_product\Plugin\Field\FieldWidget\ProductVariationFieldWidget->__construct('commerce_produc...', Array, Object(Drupal\Core\Field\BaseFieldDefinition), Array, Array, Object(Drupal\Core\Entity\EntityTypeManager), Object(Drupal\Core\Entity\EntityFieldManager), Object(Drupal\Core\Entity\EntityTypeBundleInfo), Object(Drupal\Core\Entity\EntityDisplayRepository))
#2 /app/web/core/lib/Drupal/Core/Field/WidgetPluginManager.php(122): Drupal\commerce_product\Plugin\Field\FieldWidget\ProductVariationFieldWidget::create(Object(Drupal\Core\DependencyInjection\Container), Array, 'commerce_produc...', Array)
#3 /app/web/core/lib/Drupal/Core/Field/WidgetPluginManager.php(110): Drupal\Core\Field\WidgetPluginManager->createInstance('commerce_produc...', Array)
#4 /app/web/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php(157): Drupal\Core\Field\WidgetPluginManager->getInstance(Array)
#5 /app/web/core/modules/field_ui/src/Form/EntityDisplayFormBase.php(366): Drupal\Core\Entity\Entity\EntityFormDisplay->getRenderer('purchased_entit...')
Issue Status
Active
Contribution Issue Link
Contribution Link
Files count
0
Patches count
0