protected function StockLevelProcessor::ensureComputedValue in Commerce Stock 8
Ensures that the stock level is only computed once.
1 call to StockLevelProcessor::ensureComputedValue()
- StockLevelProcessor::getValue in modules/
field/ src/ StockLevelProcessor.php - Gets the data value.
File
- modules/
field/ src/ StockLevelProcessor.php, line 61
Class
- StockLevelProcessor
- Processor used by the StockLevel field.
Namespace
Drupal\commerce_stock_fieldCode
protected function ensureComputedValue() {
if ($this->valueComputed === FALSE) {
$this
->computeValue();
$this->valueComputed = TRUE;
}
}