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