Interface AmpPage
-
@ConsumerType public interface AmpPage
Defines theAmpPageSling Model used for AMP extension for the/apps/core/wcm/components/page/v2/pagecomponent.- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Map<String,String>getPageLinkAttrs()Getter for the relative page link to either the AMP version or base HTML version of the page.default booleanisAmpEnabled()Getter for whether the current page is AMP enabled.default booleanisAmpSelector()Getter for whether the current request has the AMP selector
-
-
-
Method Detail
-
getPageLinkAttrs
default Map<String,String> getPageLinkAttrs()
Getter for the relative page link to either the AMP version or base HTML version of the page.- Returns:
- the page link
-
isAmpSelector
default boolean isAmpSelector()
Getter for whether the current request has the AMP selector- Returns:
trueif the current request has the AMP selector,falseotherwise
-
isAmpEnabled
default boolean isAmpEnabled()
Getter for whether the current page is AMP enabled.- Returns:
- boolean for AMP enabled
-
-