You are here

public function TaxTypeBase::setConfiguration in Commerce Core 8.2

Sets the configuration for this plugin instance.

Parameters

array $configuration: An associative array containing the plugin's configuration.

Overrides ConfigurableInterface::setConfiguration

2 calls to TaxTypeBase::setConfiguration()
Custom::setConfiguration in modules/tax/src/Plugin/Commerce/TaxType/Custom.php
Sets the configuration for this plugin instance.
TaxTypeBase::__construct in modules/tax/src/Plugin/Commerce/TaxType/TaxTypeBase.php
Constructs a new TaxTypeBase object.
1 method overrides TaxTypeBase::setConfiguration()
Custom::setConfiguration in modules/tax/src/Plugin/Commerce/TaxType/Custom.php
Sets the configuration for this plugin instance.

File

modules/tax/src/Plugin/Commerce/TaxType/TaxTypeBase.php, line 155

Class

TaxTypeBase
Provides the base class for tax types.

Namespace

Drupal\commerce_tax\Plugin\Commerce\TaxType

Code

public function setConfiguration(array $configuration) {
  $this->configuration = NestedArray::mergeDeep($this
    ->defaultConfiguration(), $configuration);
}