$pricingRules->findBy()
Find a single element by an attribute and its value
$pricingRules->findBy(string $attribute, $value): TValue|null
Parameters
| Name | Type | Default |
|---|---|---|
$attribute |
string |
- |
$value |
mixed |
- |
Return type
TValue or null
Parent class
Wagnerwagner\Merx\PricingRules inherited from Kirby\Cms\Collection