Search in sources :

Example 1 with EssentialsBannerComponentInfo

use of org.onehippo.cms7.essentials.components.info.EssentialsBannerComponentInfo in project hippo by NHS-digital-website.

the class BannerComponent method doBeforeRender.

@Override
public void doBeforeRender(HstRequest request, HstResponse response) {
    super.doBeforeRender(request, response);
    EssentialsBannerComponentInfo componentInfo = getComponentParametersInfo(request);
    HippoBean document = getHippoBeanForPath(componentInfo.getDocument(), HippoBean.class);
    request.setAttribute("document", document);
    request.setAttribute("cparam", componentInfo);
    DocumentUtils.setMetaTags(request, this);
}
Also used : HippoBean(org.hippoecm.hst.content.beans.standard.HippoBean) EssentialsBannerComponentInfo(org.onehippo.cms7.essentials.components.info.EssentialsBannerComponentInfo)

Aggregations

HippoBean (org.hippoecm.hst.content.beans.standard.HippoBean)1 EssentialsBannerComponentInfo (org.onehippo.cms7.essentials.components.info.EssentialsBannerComponentInfo)1