Call parameterized method from component HTL
We have a requirement where we have created content fragment model having one of the fields as location title. Now we are getting list of content fragment objects (officeLocationCfms) in component HTL Code. We need to display content fragment location title value in component's UI.
Method: com.adobe.cq.dam.cfm.ContentFragment.getElement(String var1)
But its not working.
I wanted to know how to call parameterized methods from HTL.