You are here

public function CartBlock::__construct in Commerce Cart Flyout 8

Constructs a new CartBlock object.

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\Routing\RouteMatchInterface $route_match: The request stack.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/CartBlock.php, line 57

Class

CartBlock
Provides a cart block.

Namespace

Drupal\commerce_cart_flyout\Plugin\Block

Code

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