Automattic\WooCommerce\Blocks\BlockTypes

Checkout::is_block_editor()protectedWC 1.0

Are we currently on the admin block editor screen?

Method of the class: Checkout{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->is_block_editor();

Checkout::is_block_editor() code WC 8.9.0

protected function is_block_editor() {
	if ( ! is_admin() || ! function_exists( 'get_current_screen' ) ) {
		return false;
	}
	$screen = get_current_screen();

	return $screen && $screen->is_block_editor();
}