Automattic\WooCommerce\Blocks\BlockTypes

ProductFilterActive::render_items()privateWC 1.0

Render the list items.

Method of the class: ProductFilterActive{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->render_items( $items, $style );
$items(array) (required)
Items data.
$style(string) (required)
Display style: list | chips.

ProductFilterActive::render_items() code WC 9.0.1

private function render_items( $items, $style ) {
	foreach ( $items as $item ) {
		if ( 'chips' === $style ) {
			$this->render_chip_item( $item );
		} else {
			$this->render_list_item( $item );
		}
	}
}