You are here

Deprecated in Commerce Core 8.2

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Namesort descending Location Type Deprecation Direct uses Namespaced uses Overrides Use statements
AvailabilityCheckerInterface src/AvailabilityCheckerInterface.php interface in commerce:8.x-2.18 and is removed from commerce:3.x. Use \Drupal\commerce_order\AvailabilityCheckerInterface instead. 3
AvailabilityManager src/AvailabilityManager.php class in commerce:8.x-2.18 and is removed from commerce:3.x. Use \Drupal\commerce_order\AvailabilityManager instead. 1
BundleFieldDefinition src/BundleFieldDefinition.php class in Commerce 2.0
BundlePluginInterface src/BundlePluginInterface.php interface in Commerce 2.0
CartManagerTestTrait modules/cart/tests/src/Traits/CartManagerTestTrait.php trait in commerce:8.x-2.17 and is removed from commerce:3.x. Use CartKernelTestBase instead.
CommercePluginEntityFormBase src/Form/CommercePluginEntityFormBase.php class in Commerce 2.2. Set #disabled on the ID element directly.
CommerceWebDriverTestBase::waitForAjaxToFinish tests/src/FunctionalJavascript/CommerceWebDriverTestBase.php function in commerce:8.x-2.16 and is removed from commerce:3.x.
commerce_order_add_order_items_field modules/order/commerce_order.module function in commerce:8.x-2.16 and is removed from commerce:3.x. The order items field is now a base field.
commerce_product_add_stores_field modules/product/commerce_product.module function in commerce:8.x-2.16 and is removed from commerce:3.x. The stores field is now a base field.
commerce_product_add_variations_field modules/product/commerce_product.module function in commerce:8.x-2.16 and is removed from commerce:3.x. The variations field is now a base field.
CouponRedemptionForm modules/promotion/src/Element/CouponRedemptionForm.php class Use the coupon_redemption inline form instead. Usage example:
EmbeddedEntityAccessControlHandler src/EmbeddedEntityAccessControlHandler.php class in Commerce 2.8. See ProductVariationAccessControlHandler for an example replacement.
EndDateWidget src/Plugin/Field/FieldWidget/EndDateWidget.php class in commerce:8.x-2.16 and is removed from commerce:3.x. Use the 'commerce_store_datetime' widget instead.
EntityAccessControlHandler src/EntityAccessControlHandler.php class in Commerce 2.0
EntityPermissionProvider src/EntityPermissionProvider.php class in Commerce 2.0
NumberFormatEvent modules/price/src/Event/NumberFormatEvent.php class No longer fired, switch to NumberFormatDefinitionEvent.
NumberFormatterFactory modules/price/src/NumberFormatterFactory.php class Use \Drupal\commerce_price\CurrencyFormatter instead.
NumberFormatterFactoryInterface modules/price/src/NumberFormatterFactoryInterface.php interface Replaced by CurrencyFormatterInterface. 1
OrderAssignEvent::getAccount modules/order/src/Event/OrderAssignEvent.php function Use getCustomer() instead.
PaymentGatewayBase::$entityId modules/payment/src/Plugin/Commerce/PaymentGateway/PaymentGatewayBase.php property in commerce:8.x-2.16 and is removed from commerce:3.x. Use $this->parentEntity->id() instead.
PaymentGatewayForm modules/payment/src/Element/PaymentGatewayForm.php class Use the payment_gateway_form inline form instead. Usage example:
PaymentGatewayInterface::toMinorUnits modules/payment/src/Plugin/Commerce/PaymentGateway/PaymentGatewayInterface.php function This method was replaced with MinorUnitsConverter::toMinorUnits(). 1
PriceEvents::NUMBER_FORMAT_LOAD modules/price/src/Event/PriceEvents.php constant No longer fired. Subscribe to NUMBER_FORMAT instead.
ProductVariationInterface::isActive modules/product/src/Entity/ProductVariationInterface.php function in Commerce 8.x-2.11. Use $this->isPublished() instead. 1
ProductVariationInterface::setActive modules/product/src/Entity/ProductVariationInterface.php function in Commerce 8.x-2.11. Use $this->setPublished() or $this->setUnpublished() instead. 1
ProfileSelect modules/order/src/Element/ProfileSelect.php class Use the customer_profile or content_entity inline forms instead. Usage example:
StoreStorageInterface::markAsDefault modules/store/src/StoreStorageInterface.php function in commerce:8.x-2.16 and is removed from commerce:3.x. 1
TaxTypeBase::$entityId modules/tax/src/Plugin/Commerce/TaxType/TaxTypeBase.php property in commerce:8.x-2.16 and is removed from commerce:3.x. Use $this->parentEntity->id() instead.

Other projects