Like a broken record.
Polearm Master has a clear statement on how it modifies opportunity attacks. This method of generating opportunity attacks is consistent with Polearm Master. Therefore, this method is allowed by the rules. QED.
Incidentally, if you read or understood the previous post, you'd know that I would still have 24 attacks without Polearm Master.