Automattic\WooCommerce\Blocks\BlockTypes

SavedForLater::render_empty_markupprivateWC 1.0

Render the empty-state markup. Always present in the DOM so JS can toggle it on once the last item is removed. Initially hidden: SSR never shows the message, since state.isEmpty requires the JS-side hasShownItems context flag to flip first.

Method of the class: SavedForLater{}

No Hooks.

Returns

String.

Usage

// private - for code of main (parent) class only
$result = $this->render_empty_markup(): string;

SavedForLater::render_empty_markup() code WC 10.9.4

private function render_empty_markup(): string {
	return ShopperListRenderer::render_empty_state(
		__( 'Nothing saved yet — items you save from the cart will appear here.', 'woocommerce' ),
		'wc-block-saved-for-later__empty',
		true
	);
}