WordPress at a glance
function is not described

Automattic\WooCommerce\Blocks\BlockTypes

AbstractProductGrid::get_container_classes() protected WC 1.0

Get the list of classes to apply to this block.

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

No Hooks.

Return

String. space-separated list of classes.

Usage

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

Code of AbstractProductGrid::get_container_classes() WC 5.0.0

<?php
protected function get_container_classes() {
	$classes = array(
		'wc-block-grid',
		"wp-block-{$this->block_name}",
		"wc-block-{$this->block_name}",
		"has-{$this->attributes['columns']}-columns",
	);

	if ( $this->attributes['rows'] > 1 ) {
		$classes[] = 'has-multiple-rows';
	}

	if ( isset( $this->attributes['align'] ) ) {
		$classes[] = "align{$this->attributes['align']}";
	}

	if ( ! empty( $this->attributes['alignButtons'] ) ) {
		$classes[] = 'has-aligned-buttons';
	}

	if ( ! empty( $this->attributes['className'] ) ) {
		$classes[] = $this->attributes['className'];
	}

	return implode( ' ', $classes );
}