You are here

public function CheckoutProgressBlock::__construct in Commerce Core 8.2

Constructs a new CheckoutProgressBlock.

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\commerce_checkout\CheckoutOrderManagerInterface $checkout_order_manager: The checkout order manager.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

Overrides BlockPluginTrait::__construct

File

modules/checkout/src/Plugin/Block/CheckoutProgressBlock.php, line 51

Class

CheckoutProgressBlock
Provides a checkout progress block.

Namespace

Drupal\commerce_checkout\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CheckoutOrderManagerInterface $checkout_order_manager, RouteMatchInterface $route_match) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->checkoutOrderManager = $checkout_order_manager;
  $this->routeMatch = $route_match;
}