Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection

Renderer::set_fixed_width_style()privateWC 1.0

Set the style attribute for fixed width.

Method of the class: Renderer{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->set_fixed_width_style( $p, $fixed_width );
$p(WP_HTML_Tag_Processor) (required)
The HTML tag processor.
$fixed_width(string) (required)
The fixed width value.

Renderer::set_fixed_width_style() code WC 9.6.1

private function set_fixed_width_style( $p, $fixed_width ) {
	$p->set_attribute( 'style', $this->get_list_styles( $fixed_width ) );
}