Automattic\WooCommerce\EmailEditor\Integrations\Core\Renderer\Blocks

Columns::render_contentprotectedWC 1.0

Renders the block content. BlockGap spacing is handled by Spacing_Preprocessor which sets physical padding on column children.

Method of the class: Columns{}

No Hooks.

Returns

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->render_content( $block_content, $parsed_block, $rendering_context ): string;
$block_content(string) (required)
Block content.
$parsed_block(array) (required)
Parsed block.
$rendering_context(Rendering_Context) (required)
Rendering context.

Columns::render_content() code WC 10.9.1

protected function render_content( string $block_content, array $parsed_block, Rendering_Context $rendering_context ): string {
	return str_replace(
		'{columns_content}',
		$this->get_inner_content( $block_content ),
		$this->getBlockWrapper( $block_content, $parsed_block, $rendering_context )
	);
}