Automattic\WooCommerce\Blocks\BlockTypes

MiniCartTitleItemsCounterBlock::renderprotectedWC 1.0

Render the block.

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

Хуков нет.

Возвращает

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

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

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

Код MiniCartTitleItemsCounterBlock::render() WC 10.3.6

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