Automattic\WooCommerce\Blocks\BlockTypes
ProductSaleBadge::get_block_type_supports()
Get block attributes.
Method of the class: ProductSaleBadge{}
No Hooks.
Return
Array
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_block_type_supports();
ProductSaleBadge::get_block_type_supports() ProductSaleBadge::get block type supports code WC 9.7.1
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', ); }