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

ConstantVisibilityTypeValue
PATHpublicstring’assets.path’
VERSIONpublicstring’assets.version’
ADMIN_SCRIPTSpublicstring’assets.admin.scripts’
ADMIN_STYLESpublicstring’assets.admin.styles’
ADMIN_CONFIGpublicstring’assets.admin.config’
ADMIN_LOCALIZATIONNpublicstring’assets.admin.l10n’
FRONTEND_SCRIPTSpublicstring’assets.frontend.scripts’
FRONTEND_STYLESpublicstring’assets.frontend.styles’
FRONTEND_CONFIGpublicstring’assets.frontend.config’
FRONTEND_LOCALIZATIONpublicstring’assets.frontend.l10n’
IMAGE_SIZESpublicstring’assets.frontend.imagesizes’

Methods

register

Registers assets in the dependency container.

public register(\Pimple\Container $container): mixed

Parameters:

ParameterTypeDescription
$container\Pimple\ContainerDependency injection container.

admin

Registers admin assets and related actions.

public admin(\Pimple\Container $container): mixed

Parameters:

ParameterTypeDescription
$container\Pimple\ContainerDependency injection container.

frontend

Registers frontend assets and related actions.

public frontend(\Pimple\Container $container): mixed

Parameters:

ParameterTypeDescription
$container\Pimple\ContainerDependency injection container.


Automatically generated on 2025-01-21