The rules changed at the start of the 18-19 season. Yellow cards are competition specific but red card suspensions still carry across all first team competitions.
For the league it's
5 yellows before the completion of 19 fixtures - 1 game ban
10 yellows before the completion of 32 fixtures - 2...