You are here

public function CouponRedemption::__construct in Commerce Core 8.2

Same name in this branch
  1. 8.2 modules/promotion/src/Plugin/views/area/CouponRedemption.php \Drupal\commerce_promotion\Plugin\views\area\CouponRedemption::__construct()
  2. 8.2 modules/promotion/src/Plugin/Commerce/CheckoutPane/CouponRedemption.php \Drupal\commerce_promotion\Plugin\Commerce\CheckoutPane\CouponRedemption::__construct()
  3. 8.2 modules/promotion/src/Plugin/Commerce/InlineForm/CouponRedemption.php \Drupal\commerce_promotion\Plugin\Commerce\InlineForm\CouponRedemption::__construct()

Constructs a new OrderTotal instance.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\commerce\InlineFormManager $inline_form_manager: The inline form manager.

Overrides HandlerBase::__construct

File

modules/promotion/src/Plugin/views/area/CouponRedemption.php, line 58

Class

CouponRedemption
Defines a coupon redemption area handler.

Namespace

Drupal\commerce_promotion\Plugin\views\area

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, InlineFormManager $inline_form_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->orderStorage = $entity_type_manager
    ->getStorage('commerce_order');
  $this->inlineFormManager = $inline_form_manager;
}