Search in sources :

Example 1 with SocialMediaComponentInfo

use of uk.nhs.digital.common.components.info.SocialMediaComponentInfo in project hippo by NHS-digital-website.

the class SocialMediaComponent method doBeforeRender.

@Override
public void doBeforeRender(HstRequest request, HstResponse response) {
    super.doBeforeRender(request, response);
    final SocialMediaComponentInfo componentParametersInfo = getComponentParametersInfo(request);
    List<HippoDocument> socialMediaItems = getSocialMediaItems(componentParametersInfo);
    request.setAttribute("socialmedia", socialMediaItems);
    String title = componentParametersInfo.getTitle();
    request.setAttribute("title", title);
}
Also used : HippoDocument(org.hippoecm.hst.content.beans.standard.HippoDocument) SocialMediaComponentInfo(uk.nhs.digital.common.components.info.SocialMediaComponentInfo)

Aggregations

HippoDocument (org.hippoecm.hst.content.beans.standard.HippoDocument)1 SocialMediaComponentInfo (uk.nhs.digital.common.components.info.SocialMediaComponentInfo)1