Automattic\WooCommerce\Blocks\BlockTypes

AbstractBlock::enqueue_editor_assets()publicWC 1.0

Enqueue assets used for rendering the block in editor context.

This is needed if a block is not yet within the post content--render and enqueue_assets may not have ran.

Method of the class: AbstractBlock{}

No Hooks.

Return

null. Nothing (null).

Usage

$AbstractBlock = new AbstractBlock();
$AbstractBlock->enqueue_editor_assets();

AbstractBlock::enqueue_editor_assets() code WC 8.6.1

public function enqueue_editor_assets() {
	if ( $this->enqueued_assets ) {
		return;
	}
	$this->enqueue_data();
}