Automattic\WooCommerce\Blocks\Assets
AssetDataRegistry::__construct
Constructor
Method of the class: AssetDataRegistry{}
No Hooks.
Returns
null. Nothing (null).
Usage
$AssetDataRegistry = new AssetDataRegistry(); $AssetDataRegistry->__construct( $asset_api );
- $asset_api(Api) (required)
- Asset API interface for various asset registration.
AssetDataRegistry::__construct() AssetDataRegistry:: construct code WC 10.7.0
public function __construct( Api $asset_api ) {
$this->api = $asset_api;
$this->init();
}