Automattic\WooCommerce\Blocks\BlockTypes

MiniCart::render()protectedWC 1.0

Append frontend scripts when rendering the Mini-Cart block.

Method of the class: MiniCart{}

No Hooks.

Return

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.

MiniCart::render() code WC 9.4.2

protected function render( $attributes, $content, $block ) {
	return $content . $this->get_markup( MiniCartUtils::migrate_attributes_to_color_panel( $attributes ) );
}