public static function OrderStatus::getOptionsList in Ubercart 8.4
Returns an option list of order statuses.
Return value
string[] An array of status names, keyed by status ID.
8 calls to OrderStatus::getOptionsList()
- CustomProductReport::buildForm in uc_report/
src/ Form/ CustomProductReport.php - Form constructor.
- CustomSalesReport::buildForm in uc_report/
src/ Form/ CustomSalesReport.php - Form constructor.
- OrderUpdateForm::buildForm in uc_order/
src/ Form/ OrderUpdateForm.php - Form constructor.
- ParametersForm::buildForm in uc_tax_report/
src/ Form/ ParametersForm.php - Form constructor.
- SetOrderStatus::getOptionsList in uc_order/
src/ Plugin/ RulesAction/ SetOrderStatus.php - Order status options callback.
File
- uc_order/
src/ Entity/ OrderStatus.php, line 159
Class
- OrderStatus
- Defines the order status entity.
Namespace
Drupal\uc_order\EntityCode
public static function getOptionsList() {
$options = [];
foreach (static::loadMultiple() as $status) {
$options[$status
->id()] = $status
->getName();
}
return $options;
}