You are here

public function TaxNumberTypeWithVerificationBase::__construct in Commerce Core 8.2

Constructs a new TaxNumberTypeWithVerificationBase 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\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache.

\Drupal\Component\Datetime\TimeInterface $time: The time.

Overrides PluginBase::__construct

File

modules/tax/src/Plugin/Commerce/TaxNumberType/TaxNumberTypeWithVerificationBase.php, line 43

Class

TaxNumberTypeWithVerificationBase
Provides the base class for tax number types which support verification.

Namespace

Drupal\commerce_tax\Plugin\Commerce\TaxNumberType

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MemoryCacheInterface $memory_cache, TimeInterface $time) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->memoryCache = $memory_cache;
  $this->time = $time;
}