Can just glue the fragments back on, assuming it's not so many pieces this becomes impractical. Superglue is good.
How many pins are connected? If only two, and you can guess the value (you can measure it too, but it will probably now be higher than intended, if it's not completely broken I mean), and it's near a common commercial value, you can replace it. If more, good luck.
If it still [nearly] works, and you know the value it needs to be or can tune it (based on circuit response?), just put a chunk of ferrite beside it, and glue it in place where it gives the right value. e.g.
https://www.digikey.com/en/products/filter/ferrite-disks-and-plates/843FYI: a transformer has more than two pins. An inductor has exactly two pins. (Sometimes "coupled inductor" is used as well, which is a type of "transformer".)
Tim