Commit ae7dbf3c authored by bojanz's avatar bojanz

Issue #3029306 by bojanz, quietone: Remove use of deprecated ConfigurablePluginInterface

parent 4d4eda9b
......@@ -2,7 +2,8 @@
namespace Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Component\Plugin\DependentPluginInterface;
use Drupal\Component\Plugin\DerivativeInspectionInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Form\BaseFormIdInterface;
......@@ -16,7 +17,7 @@ use Drupal\Core\Plugin\PluginFormInterface;
* administrator. This configuration is stored in the commerce_checkout_flow
* config entity and injected into the plugin at instantiation.
*/
interface CheckoutFlowInterface extends FormInterface, BaseFormIdInterface, ConfigurablePluginInterface, PluginFormInterface, PluginInspectionInterface, DerivativeInspectionInterface {
interface CheckoutFlowInterface extends FormInterface, BaseFormIdInterface, ConfigurableInterface, DependentPluginInterface, PluginFormInterface, PluginInspectionInterface, DerivativeInspectionInterface {
/**
* Gets the current order.
......
......@@ -3,7 +3,8 @@
namespace Drupal\commerce_checkout\Plugin\Commerce\CheckoutPane;
use Drupal\commerce_order\Entity\OrderInterface;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Component\Plugin\DependentPluginInterface;
use Drupal\Component\Plugin\DerivativeInspectionInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Form\FormStateInterface;
......@@ -14,7 +15,7 @@ use Drupal\Core\Plugin\PluginFormInterface;
*
* Checkout panes are configurable forms embedded into the checkout flow form.
*/
interface CheckoutPaneInterface extends ConfigurablePluginInterface, PluginFormInterface, PluginInspectionInterface, DerivativeInspectionInterface {
interface CheckoutPaneInterface extends ConfigurableInterface, DependentPluginInterface, PluginFormInterface, PluginInspectionInterface, DerivativeInspectionInterface {
/**
* Sets the current order.
......
......@@ -3,7 +3,8 @@
namespace Drupal\commerce_payment\Plugin\Commerce\PaymentGateway;
use Drupal\commerce_payment\Entity\PaymentInterface;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Component\Plugin\DependentPluginInterface;
use Drupal\Component\Plugin\DerivativeInspectionInterface;
use Drupal\Core\Plugin\PluginFormInterface;
use Drupal\Core\Plugin\PluginWithFormsInterface;
......@@ -11,7 +12,7 @@ use Drupal\Core\Plugin\PluginWithFormsInterface;
/**
* Defines the base interface for payment gateways.
*/
interface PaymentGatewayInterface extends PluginWithFormsInterface, ConfigurablePluginInterface, PluginFormInterface, DerivativeInspectionInterface {
interface PaymentGatewayInterface extends PluginWithFormsInterface, ConfigurableInterface, DependentPluginInterface, PluginFormInterface, DerivativeInspectionInterface {
/**
* Gets the payment gateway label.
......
......@@ -53,13 +53,6 @@ abstract class PromotionOfferBase extends PluginBase implements PromotionOfferIn
);
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
return [];
}
/**
* {@inheritdoc}
*/
......
......@@ -3,7 +3,7 @@
namespace Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer;
use Drupal\commerce_promotion\Entity\PromotionInterface;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Plugin\PluginFormInterface;
......@@ -17,7 +17,7 @@ use Drupal\Core\Plugin\PluginFormInterface;
* @see \Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer\OrderPromotionOfferInterface
* @see \Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer\OrderItemPromotionOfferInterface
*/
interface PromotionOfferInterface extends ConfigurablePluginInterface, PluginFormInterface, PluginInspectionInterface {
interface PromotionOfferInterface extends ConfigurableInterface, PluginFormInterface, PluginInspectionInterface {
/**
* Gets the offer entity type ID.
......
......@@ -3,7 +3,8 @@
namespace Drupal\commerce_tax\Plugin\Commerce\TaxType;
use Drupal\commerce_order\Entity\OrderInterface;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Component\Plugin\DependentPluginInterface;
use Drupal\Component\Plugin\DerivativeInspectionInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Plugin\PluginFormInterface;
......@@ -17,7 +18,7 @@ use Drupal\Core\Plugin\PluginFormInterface;
* @see \Drupal\commerce_tax\Plugin\Commerce\TaxType\LocalTaxTypeInterface
* @see \Drupal\commerce_tax\Plugin\Commerce\TaxType\RemoteTaxTypeInterface
*/
interface TaxTypeInterface extends ConfigurablePluginInterface, PluginFormInterface, PluginInspectionInterface, DerivativeInspectionInterface {
interface TaxTypeInterface extends ConfigurableInterface, DependentPluginInterface, PluginFormInterface, PluginInspectionInterface, DerivativeInspectionInterface {
/**
* Gets the tax type label.
......
......@@ -2,7 +2,8 @@
namespace Drupal\commerce\Plugin\Commerce\Condition;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Component\Plugin\DependentPluginInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Plugin\PluginFormInterface;
......@@ -10,7 +11,7 @@ use Drupal\Core\Plugin\PluginFormInterface;
/**
* Defines the interface for conditions.
*/
interface ConditionInterface extends ConfigurablePluginInterface, PluginFormInterface, PluginInspectionInterface {
interface ConditionInterface extends ConfigurableInterface, DependentPluginInterface, PluginFormInterface, PluginInspectionInterface {
/**
* Gets the condition label.
......
......@@ -46,13 +46,6 @@ abstract class InlineFormBase extends PluginBase implements InlineFormInterface,
);
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
return [];
}
/**
* {@inheritdoc}
*/
......
......@@ -2,7 +2,7 @@
namespace Drupal\commerce\Plugin\Commerce\InlineForm;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
......@@ -18,7 +18,7 @@ use Drupal\Component\Plugin\PluginInspectionInterface;
* Just like form elements, inline forms are automatically validated and
* submitted when the complete form is validated/submitted.
*/
interface InlineFormInterface extends ConfigurablePluginInterface, PluginInspectionInterface {
interface InlineFormInterface extends ConfigurableInterface, PluginInspectionInterface {
/**
* Gets the inline form label.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment