MailPoet\EmailEditor\Integrations\Core\Renderer\Blocks
Button::get_wrapper_styles()
Get styles for the wrapper element.
Method of the class: Button{}
No Hooks.
Return
Object{css:
. string, classname: string}
Usage
// private - for code of main (parent) class only $result = $this->get_wrapper_styles( $block_styles );
- $block_styles(array) (required)
- Block styles.
Button::get_wrapper_styles() Button::get wrapper styles code WC 9.8.1
private function get_wrapper_styles( array $block_styles ) { $properties = array( 'border', 'color', 'typography', 'spacing' ); $styles = $this->get_styles_from_block( array_intersect_key( $block_styles, array_flip( $properties ) ) ); return (object) array( 'css' => $this->compile_css( $styles['declarations'], array( 'word-break' => 'break-word', 'display' => 'block', ) ), 'classname' => $styles['classnames'], ); }