We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5ee963 commit 7f7a592Copy full SHA for 7f7a592
1 file changed
modules/promotion/src/Entity/Coupon.php
@@ -91,7 +91,12 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
91
$fields['status'] = BaseFieldDefinition::create('boolean')
92
->setLabel(t('Active status'))
93
->setDescription(t('A boolean indicating whether the Coupon is active.'))
94
- ->setDefaultValue(TRUE);
+ ->setDefaultValue(TRUE)
95
+ ->setDisplayOptions('form', [
96
+ 'type' => 'boolean_checkbox',
97
+ 'weight' => 99,
98
+ ])
99
+ ->setDisplayConfigurable('form', TRUE);
100
101
return $fields;
102
}
0 commit comments