$pricingRule->checkRule()
Checks if the pricing rule applies to the current context
$pricingRule->checkRule(null|Kirby\Cms\App $kirby = null): bool
Parameters
| Name | Type | Default |
|---|---|---|
$kirby |
null or Kirby\Cms\App |
null |
Return type
bool
Description
Kirby instance is passed to the rule function if it is a callable.
If no rule is set, true is returned.