Automattic\WooCommerce\Blocks\BlockTypes

ProductGalleryLargeImageNextPrevious::get_class_suffix()privateWC 1.0

Return class suffix

@param array $context Block context. @return string

Method of the class: ProductGalleryLargeImageNextPrevious{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->get_class_suffix( $context );
$context (required)
-

ProductGalleryLargeImageNextPrevious::get_class_suffix() code WC 9.6.1

private function get_class_suffix( $context ) {
	switch ( $context['nextPreviousButtonsPosition'] ) {
		case 'insideTheImage':
			return 'inside-image';
		case 'outsideTheImage':
			return 'outside-image';
		case 'off':
		default:
			return 'off';
	}
}