You are here

public function TaxNumberDefaultWidget::__construct in Commerce Core 8.2

Constructs a new TaxNumberDefaultWidget object.

Parameters

string $plugin_id: The plugin_id for the widget.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the widget is associated.

array $settings: The widget settings.

array $third_party_settings: Any third party settings.

\Drupal\commerce_tax\TaxNumberTypeManagerInterface $tax_number_type_manager: The tax number type manager.

Overrides WidgetBase::__construct

File

modules/tax/src/Plugin/Field/FieldWidget/TaxNumberDefaultWidget.php, line 54

Class

TaxNumberDefaultWidget
Plugin implementation of the 'commerce_tax_number_default' widget.

Namespace

Drupal\commerce_tax\Plugin\Field\FieldWidget

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, TaxNumberTypeManagerInterface $tax_number_type_manager) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
  $this->taxNumberTypeManager = $tax_number_type_manager;
}