Automattic\WooCommerce\Blocks\Assets
AssetDataRegistry::__construct()
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() AssetDataRegistry:: construct code WC 9.2.3
public function __construct( Api $asset_api ) { $this->api = $asset_api; $this->init(); }