You are here

public function LocalTaxTypeBase::__construct in Commerce Core 8.2

Constructs a new LocalTaxTypeBase 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\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\commerce_price\RounderInterface $rounder: The rounder.

\Drupal\commerce_tax\Resolver\ChainTaxRateResolverInterface $chain_rate_resolver: The chain tax rate resolver.

Overrides TaxTypeBase::__construct

1 call to LocalTaxTypeBase::__construct()
Custom::__construct in modules/tax/src/Plugin/Commerce/TaxType/Custom.php
Constructs a new Custom object.
1 method overrides LocalTaxTypeBase::__construct()
Custom::__construct in modules/tax/src/Plugin/Commerce/TaxType/Custom.php
Constructs a new Custom object.

File

modules/tax/src/Plugin/Commerce/TaxType/LocalTaxTypeBase.php, line 72

Class

LocalTaxTypeBase
Provides the base class for local tax types.

Namespace

Drupal\commerce_tax\Plugin\Commerce\TaxType

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $event_dispatcher, RounderInterface $rounder, ChainTaxRateResolverInterface $chain_rate_resolver) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $event_dispatcher);
  $this->rounder = $rounder;
  $this->chainRateResolver = $chain_rate_resolver;
}