Automattic\WooCommerce\Blocks\BlockTypes

MiniCartShoppingButtonBlock::renderprotectedWC 1.0

Render the markup for the Mini-Cart Shopping Button block.

Method of the class: MiniCartShoppingButtonBlock{}

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.

MiniCartShoppingButtonBlock::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;
}