public function TaxNumberItem::getTypePlugin in Commerce Core 8.2
Gets the tax number type plugin.
Return value
\Drupal\commerce_tax\Plugin\Commerce\TaxNumberType\TaxNumberTypeInterface The tax number type plugin.
Overrides TaxNumberItemInterface::getTypePlugin
2 calls to TaxNumberItem::getTypePlugin()
- TaxNumberItem::checkValue in modules/
tax/ src/ Plugin/ Field/ FieldType/ TaxNumberItem.php - Checks whether the current value can be used for tax calculation.
- TaxNumberItem::preSave in modules/
tax/ src/ Plugin/ Field/ FieldType/ TaxNumberItem.php - Defines custom presave behavior for field values.
File
- modules/
tax/ src/ Plugin/ Field/ FieldType/ TaxNumberItem.php, line 317
Class
- TaxNumberItem
- Plugin implementation of the 'commerce_tax_number' field type.
Namespace
Drupal\commerce_tax\Plugin\Field\FieldTypeCode
public function getTypePlugin() {
if ($this->type) {
$tax_number_type_manager = $this
->getTaxNumberTypeManager();
return $tax_number_type_manager
->createInstance($this->type);
}
}