You are here

public function BuildZonesEvent::__construct in Commerce Core 8.2

Constructs a new BuildZonesEvent.

Parameters

\Drupal\commerce_tax\TaxZone[] $zones: The tax zones.

\Drupal\commerce_tax\Plugin\Commerce\TaxType\LocalTaxTypeInterface $plugin: The local tax type plugin.

File

modules/tax/src/Event/BuildZonesEvent.php, line 37

Class

BuildZonesEvent
Defines the build zones event.

Namespace

Drupal\commerce_tax\Event

Code

public function __construct(array $zones, LocalTaxTypeInterface $plugin) {
  $this->zones = $zones;
  $this->plugin = $plugin;
}