All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.commercetools.sunrise.common.localization.SunriseLocalizationHeroldComponent Maven / Gradle / Ivy

There is a newer version: 1.0.0-M10
Show newest version
package com.commercetools.sunrise.common.localization;

import com.commercetools.sunrise.common.pages.HeroldComponentBase;
import com.commercetools.sunrise.common.pages.PageMeta;
import com.commercetools.sunrise.common.reverserouter.LocalizationReverseRouter;

import javax.inject.Inject;

final class SunriseLocalizationHeroldComponent extends HeroldComponentBase {
    @Inject
    private LocalizationReverseRouter reverseRouter;

    protected void updateMeta(final PageMeta meta) {
        meta.addHalLink(reverseRouter.processChangeLanguageForm(), "selectLanguage");
        meta.addHalLink(reverseRouter.processChangeCountryForm(languageTag()), "selectCountry");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy