You are here

public static function CommerceAutoSkuManager::commerce_autosku_options in Commerce AutoSKU 8.2

Constructs the list of options for the given bundle.

1 call to CommerceAutoSkuManager::commerce_autosku_options()
CommerceAutoSkuForm::buildForm in src/Form/CommerceAutoSkuForm.php
Form constructor.

File

src/CommerceAutoSkuManager.php, line 209
Contains \Drupal\commerce_autosku\AutoEntityLabelManager.

Class

CommerceAutoSkuManager

Namespace

Drupal\commerce_autosku

Code

public static function commerce_autosku_options() {
  return [
    CommerceAutoSkuManager::DISABLED => t('Disabled'),
    CommerceAutoSkuManager::ENABLED => t('Automatically generate the SKU and hide the label field'),
    CommerceAutoSkuManager::OPTIONAL => t('Automatically generate the SKU if the SKU field is left empty'),
  ];
}