Yes, the Penal Laws sought to wipe out all Gaelic culture and Catholicism in Ireland. Gaelic was seen as a major barrier in conquering the country, so all teaching of the language was outlawed. 100s of illegal Gaelic "Hedge schools" formed, but the perpetrators were jailed/executed, and their houses and crops burned. It was a lost cause.
It was the Famine in 1845 that saw the majority Gaelic-speaking population fall from 8 million to under 4 million. 2 million died, the rest emigrated. The famine hardened Irish hatred for Britain whose mercantilist policies they blamed for starvation.
After Independence, the government made Irish the first official language in the Constitution, thus Irish became a mandatory subject in all schools. But the curriculum focused on Irish literature and poetry instead of actually teaching people how to speak it. This caused even more damage to the language.
It remains a mandatory subject today, but only recently have they changed the curriculum to focus on speaking it rather than reading and writing. We'll have to wait another 6 years to see if it makes any difference.
I hated the language in school, but I believe making Irish (and Welsh for that matter) optional would certainly put the final nail in the coffin. Irish will remain mandatory in all schools until the Irish people vote to abolish the language from the constitution in a referendum. That's never going to happen.