Automattic\WooCommerce\Blocks\BlockTypes

ProductSaleBadge::get_block_type_supports()protectedWC 1.0

Get block attributes.

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

Хуков нет.

Возвращает

Массив.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_block_type_supports();

Код ProductSaleBadge::get_block_type_supports() WC 8.7.0

protected function get_block_type_supports() {
	return array(
		'color'                  =>
		array(
			'gradients'  => true,
			'background' => true,
			'link'       => true,
		),
		'typography'             =>
		array(
			'fontSize'                        => true,
			'lineHeight'                      => true,
			'__experimentalFontFamily'        => true,
			'__experimentalFontWeight'        => true,
			'__experimentalFontStyle'         => true,
			'__experimentalLetterSpacing'     => true,
			'__experimentalTextTransform'     => true,
			'__experimentalTextDecoration'    => true,
			'__experimentalSkipSerialization' => true,
		),
		'__experimentalBorder'   =>
		array(
			'color'  => true,
			'radius' => true,
			'width'  => true,
		),
		'spacing'                =>
		array(
			'margin'                          => true,
			'padding'                         => true,
			'__experimentalSkipSerialization' => true,

		),
		'__experimentalSelector' => '.wc-block-components-product-sale-badge',

	);
}