Interface AmpPage


@ConsumerType public 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 Type
    Method
    Description
    default Map<String,String>
    Getter for the relative page link to either the AMP version or base HTML version of the page.
    default boolean
    Getter for whether the current page is AMP enabled.
    default boolean
    Getter for whether the current request has the AMP selector
  • Method Details

    • 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:
      true if the current request has the AMP selector, false otherwise
    • isAmpEnabled

      default boolean isAmpEnabled()
      Getter for whether the current page is AMP enabled.
      Returns:
      boolean for AMP enabled