public function TaxRatePercentage::toArray in Commerce Core 8.2
Gets the array representation of the tax rate percentage.
Return value
array The array representation of the tax rate percentage.
File
- modules/
tax/ src/ TaxRatePercentage.php, line 126
Class
- TaxRatePercentage
- Represents a tax rate percentage.
Namespace
Drupal\commerce_taxCode
public function toArray() : array {
return array_filter([
'number' => $this->number,
'start_date' => $this->startDate,
'end_date' => $this->endDate,
]);
}