Tax Setup Resource Model
Definition at line 15 of file TaxSetup.php.
◆ __construct()
Init
- Parameters
-
ModuleDataSetupInterface | $setup | |
SalesSetupFactory | $salesSetupFactory | |
ConfigInterface | $productTypeConfig | |
Definition at line 36 of file TaxSetup.php.
41 $this->salesSetup = $salesSetupFactory->create([
'resourceName' =>
'tax_setup',
'setup' =>
$setup]);
◆ addAttribute()
addAttribute |
( |
|
$entityTypeId, |
|
|
|
$code, |
|
|
array |
$attr |
|
) |
| |
Add entity attribute.
- Parameters
-
int | string | $entityTypeId | |
string | $code | |
array | $attr | |
- Returns
- $this
Definition at line 63 of file TaxSetup.php.
◆ getTaxableItems()
Get taxable product types
- Returns
- array
Definition at line 50 of file TaxSetup.php.
52 return $this->productTypeConfig->filter(
'taxable');
◆ updateAttribute()
updateAttribute |
( |
|
$entityTypeId, |
|
|
|
$id, |
|
|
|
$field, |
|
|
|
$value = null , |
|
|
|
$sortOrder = null |
|
) |
| |
Update Attribute data and Attribute additional data.
- Parameters
-
int | string | $entityTypeId | |
int | string | $id | |
string | $field | |
mixed | $value | |
int | $sortOrder | |
- Returns
- $this
Definition at line 79 of file TaxSetup.php.
◆ $productTypeConfig
◆ $salesSetup
The documentation for this class was generated from the following file: