Automattic\WooCommerce\Blocks\BlockTypes
Checkout::register_patterns
Register block pattern for Empty Cart Message to make it translatable.
Method of the class: Checkout{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Checkout = new Checkout(); $Checkout->register_patterns();
Checkout::register_patterns() Checkout::register patterns code WC 10.3.6
public function register_patterns() {
register_block_pattern(
'woocommerce/checkout-heading',
array(
'title' => '',
'inserter' => false,
'content' => '<!-- wp:heading {"align":"wide", "level":1} --><h1 class="wp-block-heading alignwide">' . esc_html__( 'Checkout', 'woocommerce' ) . '</h1><!-- /wp:heading -->',
)
);
}