Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors

Spacing_Preprocessor::preprocesspublicWC 1.0

Preprocesses the parsed blocks.

Method of the class: Spacing_Preprocessor{}

No Hooks.

Returns

Array.

Usage

$Spacing_Preprocessor = new Spacing_Preprocessor();
$Spacing_Preprocessor->preprocess( $parsed_blocks, $layout, $styles ): array;
$parsed_blocks(array) (required)
Parsed blocks.
$layout(array) (required)
Layout.
$styles(array) (required)
Styles.

Spacing_Preprocessor::preprocess() code WC 10.9.1

public function preprocess( array $parsed_blocks, array $layout, array $styles ): array {
	return $this->preprocess_with_context( $parsed_blocks, $layout, $styles );
}