public static function Promotion::getCompatibilityOptions in Commerce Core 8.2
Gets the allowed values for the 'compatibility' base field.
Return value
array The allowed values.
File
- modules/
promotion/ src/ Entity/ Promotion.php, line 931
Class
- Promotion
- Defines the promotion entity class.
Namespace
Drupal\commerce_promotion\EntityCode
public static function getCompatibilityOptions() {
return [
self::COMPATIBLE_ANY => t('Any promotion'),
self::COMPATIBLE_NONE => t('Not with any other promotions'),
];
}