In any event, you are wrong. The 31st amendment repealed section 5 of article 42, inserting the following in it's place:
Article 42A
1 The State recognises and affirms the natural and imprescriptible rights of all children and shall, as far as practicable, by its laws protect and vindicate those rights.
2 1° In exceptional cases, where the parents, regardless of their marital status, fail in their duty towards their children to such extent that the safety or welfare of any of their children is likely to be prejudicially affected, the State as guardian of the com- mon good shall, by proportionate means as provided by law, endeavour to supply the place of the parents, but always with due regard for the natural and imprescriptible rights of the child.
2° Provision shall be made by law for the adoption of any child where the parents have failed for such a period of time as may be prescribed by law in their duty towards the child and where the best interests of the child so require.
3 Provision shall be made by law for the voluntary placement for adoption and the adoption of any child.
4 1° Provision shall be made by law that in the resolution of all proceedings—
i broughtbytheState,asguardianofthecommongood,for the purpose of preventing the safety and welfare of any child from being prejudicially affected, or
ii concerning the adoption, guardianship or custody of, or access to, any child,
the best interests of the child shall be the paramount con- sideration.
2° Provision shall be made by law for securing, as far as practi- cable, that in all proceedings referred to in subsection 1° of this section in respect of any child who is capable of forming his
or her own views, the views of the child shall be ascertained and given due weight having regard to the age and maturity of the child.
https://data.oireachtas.ie/ie/oireachtas/act/2012/C31/mul/enacted/a31st12.pdf