Automattic\WooCommerce\Blocks\Assets

AssetDataRegistry::__construct()publicWC 1.0

Constructor

Метод класса: AssetDataRegistry{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$AssetDataRegistry = new AssetDataRegistry();
$AssetDataRegistry->__construct( $asset_api );
$asset_api(Api) (обязательный)
Asset API interface for various asset registration.

Код AssetDataRegistry::__construct() WC 8.7.0

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