Search in sources :

Example 1 with CallToActionComponentInfo

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

the class CallToActionComponent method doBeforeRender.

@Override
public void doBeforeRender(HstRequest request, HstResponse response) {
    super.doBeforeRender(request, response);
    CallToActionComponentInfo info = getComponentParametersInfo(request);
    HippoBean document = getHippoBeanForPath(info.getDocument(), HippoBean.class);
    request.setAttribute("document", document);
}
Also used : HippoBean(org.hippoecm.hst.content.beans.standard.HippoBean) CallToActionComponentInfo(uk.nhs.digital.common.components.info.CallToActionComponentInfo)

Aggregations

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