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);
}
Aggregations