Automattic\WooCommerce\Blocks\Assets

AssetDataRegistry::__construct()publicWC 1.0

Constructor

Method of the class: AssetDataRegistry{}

No Hooks.

Return

null. Nothing (null).

Usage

$AssetDataRegistry = new AssetDataRegistry();
$AssetDataRegistry->__construct( $asset_api );
$asset_api(Api) (required)
Asset API interface for various asset registration.

AssetDataRegistry::__construct() code WC 8.7.0

public function __construct( Api $asset_api ) {
	$this->api = $asset_api;
	$this->init();
}