Automattic\WooCommerce\Blocks\BlockTypes

ProductGalleryLargeImageNextPrevious::get_class_suffix()privateWC 1.0

Return class suffix

@param array $context Block context. @return string

Метод класса: ProductGalleryLargeImageNextPrevious{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_class_suffix( $context );
$context (обязательный)
-

Код ProductGalleryLargeImageNextPrevious::get_class_suffix() WC 9.6.2

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