WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

Note::set_layout() public WC 1.0

Set note layout.

{} It's a method of the class: Note{}

No Hooks.

Return

null. Nothing.

Usage

$Note = new Note();
$Note->set_layout( $layout );
$layout(string) (required)
Note layout.

Code of Note::set_layout() WC 5.2.2

<?php
public function set_layout( $layout ) {
	// If we don't receive a layout we will set it by default as "plain".
	if ( empty( $layout ) ) {
		$layout = 'plain';
	}
	$valid_layouts = array( 'banner', 'plain', 'thumbnail' );
	if ( in_array( $layout, $valid_layouts, true ) ) {
		$this->set_prop( 'layout', $layout );
	} else {
		$this->error( 'admin_note_invalid_data', __( 'The admin note layout has a wrong prop value.', 'woocommerce' ) );
	}
}