Automattic\WooCommerce\Blocks\BlockTypes

MiniCartTitleBlock::renderprotectedWC 1.0

Render the block.

Method of the class: MiniCartTitleBlock{}

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.

MiniCartTitleBlock::render() code WC 10.7.0

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