Automattic\WooCommerce\Blocks\BlockTypes

FilledMiniCartContentsBlock::renderprotectedWC 1.0

Render the markup for the Filled Mini-Cart Contents block.

Метод класса: FilledMiniCartContentsBlock{}

Хуков нет.

Возвращает

Строку. Rendered block type output.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->render( $attributes, $content, $block );
$attributes(массив) (обязательный)
Block attributes.
$content(строка) (обязательный)
Block content.
$block(WP_Block) (обязательный)
Block instance.

Код FilledMiniCartContentsBlock::render() WC 10.3.6

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

	return $content;
}