Automattic\WooCommerce\Blocks\BlockTypes
MiniCart::__construct()
Constructor.
Method of the class: MiniCart{}
No Hooks.
Return
null
. Nothing (null).
Usage
$MiniCart = new MiniCart(); $MiniCart->__construct( $asset_api, $asset_data_registry, $integration_registry );
- $asset_api(AssetApi) (required)
- Instance of the asset API.
- $asset_data_registry(AssetDataRegistry) (required)
- Instance of the asset data registry.
- $integration_registry(IntegrationRegistry) (required)
- Instance of the integration registry.
MiniCart::__construct() MiniCart:: construct code WC 9.4.2
public function __construct( AssetApi $asset_api, AssetDataRegistry $asset_data_registry, IntegrationRegistry $integration_registry ) { parent::__construct( $asset_api, $asset_data_registry, $integration_registry, $this->block_name ); }