Get CMS collection List in Custom Code?

I am trying to get the collection list in custom code which I have already shown in the UI