Interface AmpPage
Defines the
AmpPage Sling Model used for AMP extension for the /apps/core/wcm/components/page/v2/page component.- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the relative page link to either the AMP version or base HTML version of the page.default booleanGetter for whether the current page is AMP enabled.default booleanGetter for whether the current request has the AMP selector
-
Method Details
-
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
-