Automattic\WooCommerce\Blocks

BlockTypesController::__construct()publicWC 1.0

Constructor.

Method of the class: BlockTypesController{}

No Hooks.

Return

null. Nothing (null).

Usage

$BlockTypesController = new BlockTypesController();
$BlockTypesController->__construct( $asset_api, $asset_data_registry );
$asset_api(AssetApi) (required)
Instance of the asset API.
$asset_data_registry(AssetDataRegistry) (required)
Instance of the asset data registry.

BlockTypesController::__construct() code WC 8.7.0

public function __construct( AssetApi $asset_api, AssetDataRegistry $asset_data_registry ) {
	$this->asset_api           = $asset_api;
	$this->asset_data_registry = $asset_data_registry;
	$this->init();
}