Skip to content

Commit 217eae0

Browse files
committed
Issue #2980696 by bojanz: Rename conditions to remove the "Limit by" prefix
1 parent 3412bc0 commit 217eae0

15 files changed

Lines changed: 40 additions & 23 deletions

File tree

modules/order/src/Plugin/Commerce/Condition/OrderBillingAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
* @CommerceCondition(
1414
* id = "order_billing_address",
1515
* label = @Translation("Billing address"),
16-
* display_label = @Translation("Limit by billing address"),
1716
* category = @Translation("Customer"),
1817
* entity_type = "commerce_order",
18+
* weight = 10,
1919
* )
2020
*/
2121
class OrderBillingAddress extends ConditionBase {

modules/order/src/Plugin/Commerce/Condition/OrderCurrency.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
*
1212
* @CommerceCondition(
1313
* id = "order_currency",
14-
* label = @Translation("Currency"),
15-
* display_label = @Translation("Limit by currency"),
14+
* label = @Translation("Order currency"),
1615
* category = @Translation("Order"),
1716
* entity_type = "commerce_order",
1817
* )

modules/order/src/Plugin/Commerce/Condition/OrderCustomerRole.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
*
1212
* @CommerceCondition(
1313
* id = "order_customer_role",
14-
* label = @Translation("Role"),
15-
* display_label = @Translation("Limit by role"),
14+
* label = @Translation("Customer role"),
1615
* category = @Translation("Customer"),
1716
* entity_type = "commerce_order",
17+
* weight = -1,
1818
* )
1919
*/
2020
class OrderCustomerRole extends ConditionBase {

modules/order/src/Plugin/Commerce/Condition/OrderEmail.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
*
1212
* @CommerceCondition(
1313
* id = "order_email",
14-
* label = @Translation("Email"),
15-
* display_label = @Translation("Limit by email"),
14+
* label = @Translation("Customer email"),
1615
* category = @Translation("Customer"),
1716
* entity_type = "commerce_order",
1817
* )

modules/order/src/Plugin/Commerce/Condition/OrderItemQuantity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
* @CommerceCondition(
1313
* id = "order_item_quantity",
1414
* label = @Translation("Quantity"),
15-
* display_label = @Translation("Limit by quantity"),
16-
* category = @Translation("Product"),
15+
* display_label = @Translation("Total product quantity"),
16+
* category = @Translation("Order"),
1717
* entity_type = "commerce_order_item",
1818
* )
1919
*/

modules/order/src/Plugin/Commerce/Condition/OrderStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @CommerceCondition(
1616
* id = "order_store",
1717
* label = @Translation("Store"),
18-
* display_label = @Translation("Limit by store"),
18+
* display_label = @Translation("Store"),
1919
* category = @Translation("Order"),
2020
* entity_type = "commerce_order",
2121
* )

modules/order/src/Plugin/Commerce/Condition/OrderTotalPrice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @CommerceCondition(
1414
* id = "order_total_price",
1515
* label = @Translation("Total price"),
16-
* display_label = @Translation("Limit by total price"),
16+
* display_label = @Translation("Current order total"),
1717
* category = @Translation("Order"),
1818
* entity_type = "commerce_order",
1919
* )

modules/order/src/Plugin/Commerce/Condition/OrderType.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
* @CommerceCondition(
1111
* id = "order_type",
12-
* label = @Translation("Type"),
13-
* display_label = @Translation("Limit by type"),
12+
* label = @Translation("Order type"),
1413
* category = @Translation("Order"),
1514
* entity_type = "commerce_order",
1615
* )

modules/payment/src/Plugin/Commerce/Condition/OrderPaymentGateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @CommerceCondition(
1313
* id = "order_payment_gateway",
1414
* label = @Translation("Payment gateway"),
15-
* display_label = @Translation("Limit by payment gateway"),
15+
* display_label = @Translation("Selected payment gateway"),
1616
* category = @Translation("Order"),
1717
* entity_type = "commerce_order",
1818
* )

modules/product/src/Plugin/Commerce/Condition/OrderItemProduct.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
* @CommerceCondition(
1616
* id = "order_item_product",
1717
* label = @Translation("Product"),
18-
* display_label = @Translation("Limit by product"),
19-
* category = @Translation("Product"),
18+
* display_label = @Translation("Specific products"),
19+
* category = @Translation("Products"),
2020
* entity_type = "commerce_order_item",
21+
* weight = -1,
2122
* )
2223
*/
2324
class OrderItemProduct extends ConditionBase implements ContainerFactoryPluginInterface {

0 commit comments

Comments
 (0)