Assets
Provides asset management for the BigCommerce plugin, including scripts, styles, configuration, and localization for both the admin and frontend.
- Full name:
\BigCommerce\Container\Assets
- Parent class:
Provider
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
PATH | public | string | ’assets.path’ |
VERSION | public | string | ’assets.version’ |
ADMIN_SCRIPTS | public | string | ’assets.admin.scripts’ |
ADMIN_STYLES | public | string | ’assets.admin.styles’ |
ADMIN_CONFIG | public | string | ’assets.admin.config’ |
ADMIN_LOCALIZATIONN | public | string | ’assets.admin.l10n’ |
FRONTEND_SCRIPTS | public | string | ’assets.frontend.scripts’ |
FRONTEND_STYLES | public | string | ’assets.frontend.styles’ |
FRONTEND_CONFIG | public | string | ’assets.frontend.config’ |
FRONTEND_LOCALIZATION | public | string | ’assets.frontend.l10n’ |
IMAGE_SIZES | public | string | ’assets.frontend.imagesizes’ |
Methods
register
Registers assets in the dependency container.
public register(\Pimple\Container $container): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$container | \Pimple\Container | Dependency injection container. |
admin
Registers admin assets and related actions.
public admin(\Pimple\Container $container): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$container | \Pimple\Container | Dependency injection container. |
frontend
Registers frontend assets and related actions.
public frontend(\Pimple\Container $container): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$container | \Pimple\Container | Dependency injection container. |
Automatically generated on 2025-01-21