public function Adjustment::getPercentage in Commerce Core 8.2
Gets the adjustment percentage.
Return value
string|null The percentage as a decimal. For example, "0.2" for a 20% adjustment. Otherwise NULL, if the adjustment was not calculated from a percentage.
File
- modules/
order/ src/ Adjustment.php, line 163
Class
- Adjustment
- Represents an adjustment.
Namespace
Drupal\commerce_orderCode
public function getPercentage() {
return $this->percentage;
}