Automattic\WooCommerce\Blocks\Domain

Bootstrap::is_built │ protected │ WC 1.0

See if files have been built or not.

Method of the class: Bootstrap{}

No Hooks.

Returns

bool.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_built();

Bootstrap::is_built() code WC 11.1.2

protected function is_built() {
	$editor_asset = $this->is_block_editor_unified_assets_enabled_during_bootstrap() ? 'wc-block-library.js' : 'featured-product.js';

	return file_exists(
		$this->package->get_path( 'assets/client/blocks/' . $editor_asset )
	);
}