Conditions
Conditions are logical blocks which can be combined with other conditions inside a target rule. A condition is expected
to implement match()
method which always returns a boolean.
To implement a condition, you need to implement 2 parts:
- A PHP class implementing the
ConditionInterface
. Have a look at existing implementations to get an idea how to implement your own conditions. - A frontend JS class defining the admin UI for your condition. You can have a look at this bundle's conditions for UI examples and at the Customer Management Framework as example for a third-party integration.