Amp
This class integrates AMP (Accelerated Mobile Pages) functionality into the BigCommerce platform.
It registers necessary services and handles template overrides, assets, and customization for AMP compatibility. The class also provides hooks and filters for customizing the AMP-specific behavior of templates, assets, and menus.
The AMP class manages the AMP checkout redirect, template override initialization, and integration with BigCommerce’s storefront rendering system to ensure AMP-compatible pages.
- Full name:
\BigCommerce\Container\Amp
- Parent class:
Provider
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
TEMPLATE_OVERRIDE | public | string | ’amp.template_override’ |
TEMPLATE_DIRECTORY | public | string | ’amp.template_directory’ |
FACTORY_OVERRIDE | public | string | ’amp.controller_factory_override’ |
ASSETS | public | string | ’amp.assets’ |
CUSTOMIZER_STYLES | public | string | ’amp.customize_styles’ |
OVERRIDES | public | string | ’amp.overrides’ |
CLASSIC | public | string | ’amp.classic’ |
AMP_CART | public | string | ’amp.amp_cart’ |
MENU_ITEM | public | string | ’amp.cart_menu_item’ |
AMP_ADMIN_NOTICES | public | string | ’amp.notices’ |
Methods
register
Registers AMP classes and callbacks.
public register(\Pimple\Container $container): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$container | \Pimple\Container | Plugin container. |
Automatically generated on 2025-01-21