SilverCommerce\Discounts\DiscountFactory::getByIdent
Find a discount by the prodvided code.
Signature
public function getByIdent(
$ident,
[boolean
$only_valid = true] )
Parameters
$ident
—$only_valid
— boolean- Only find valid codes