public function Custom::__construct in Commerce Core 8.2
Constructs a new Custom 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.
\Drupal\Component\Uuid\UuidInterface $uuid_generator: The UUID generator.
Overrides LocalTaxTypeBase::__construct
File
- modules/
tax/ src/ Plugin/ Commerce/ TaxType/ Custom.php, line 52
Class
- Custom
- Provides the Custom tax type.
Namespace
Drupal\commerce_tax\Plugin\Commerce\TaxTypeCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $event_dispatcher, RounderInterface $rounder, ChainTaxRateResolverInterface $chain_rate_resolver, UuidInterface $uuid_generator) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $event_dispatcher, $rounder, $chain_rate_resolver);
$this->uuidGenerator = $uuid_generator;
}