Automattic\WooCommerce\EmailEditor\Integrations\Core\Renderer\Blocks
Button::get_wrapper_styles
Get styles for the wrapper element.
Method of the class: Button{}
No Hooks.
Returns
Array.
Usage
// private - for code of main (parent) class only $result = $this->get_wrapper_styles( $block_attributes, $rendering_context );
- $block_attributes(array) (required)
- Block attributes.
- $rendering_context(Rendering_Context) (required)
- Rendering context.
Button::get_wrapper_styles() Button::get wrapper styles code WC 10.6.2
private function get_wrapper_styles( array $block_attributes, Rendering_Context $rendering_context ) {
$block_styles = Styles_Helper::get_block_styles( $block_attributes, $rendering_context, array( 'border', 'background-color', 'color', 'typography', 'spacing' ) );
return Styles_Helper::extend_block_styles(
$block_styles,
array(
'word-break' => 'break-word',
'display' => 'block',
)
);
}