MailPoet\EmailEditor\Integrations\Core\Renderer\Blocks
Button::get_link_styles()
Get styles for the link 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_link_styles( $block_styles );
- $block_styles(array) (required)
- Block styles.
Button::get_link_styles() Button::get link styles code WC 9.8.2
private function get_link_styles( array $block_styles ) { $styles = $this->get_styles_from_block( array( 'color' => array( 'text' => $block_styles['color']['text'] ?? '', ), 'typography' => $block_styles['typography'] ?? array(), ) ); return (object) array( 'css' => $this->compile_css( $styles['declarations'], array( 'display' => 'block' ) ), 'classname' => $styles['classnames'], ); }