You are here

public function OrderType::getRefreshFrequency in Commerce Core 8.2

Gets the order type's refresh frequency.

Return value

int The frequency, in seconds.

Overrides OrderTypeInterface::getRefreshFrequency

File

modules/order/src/Entity/OrderType.php, line 168

Class

OrderType
Defines the order type entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function getRefreshFrequency() {

  // The refresh frequency must always be at least 1s.
  return !empty($this->refresh_frequency) ? $this->refresh_frequency : 1;
}