Automattic\WooCommerce\Blocks\BlockTypes

MiniCartProductsTableBlock::renderprotectedWC 1.0

Render the markup for the Mini-Cart Products Table block.

Method of the class: MiniCartProductsTableBlock{}

No Hooks.

Returns

String. Rendered block type output.

Usage

// protected - for code of main (parent) or child class
$result = $this->render( $attributes, $content, $block );
$attributes(array) (required)
Block attributes.
$content(string) (required)
Block content.
$block(WP_Block) (required)
Block instance.

MiniCartProductsTableBlock::render() code WC 10.3.6

protected function render( $attributes, $content, $block ) {
	if ( Features::is_enabled( 'experimental-iapi-mini-cart' ) ) {
		return $this->render_experimental_iapi_markup( $attributes, $content, $block );
	}

	return $content;
}