Automattic\WooCommerce\Blocks\BlockTypes
ProductGalleryLargeImageNextPrevious::get_class_suffix()
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() 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'; } }