Search in sources :

Example 1 with CaseStudyComponentInfo

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

the class CaseStudyComponent method doBeforeRender.

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

Aggregations

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