Automattic\WooCommerce\EmailEditor\Integrations\Core\Renderer\Blocks

Button::get_link_stylesprivateWC 1.0

Get styles for the link element.

Method of the class: Button{}

No Hooks.

Returns

Array.

Usage

// private - for code of main (parent) class only
$result = $this->get_link_styles( $block_attributes, $rendering_context );
$block_attributes(array) (required)
Block attributes.
$rendering_context(Rendering_Context) (required)
Rendering context.

Button::get_link_styles() code WC 10.7.0

private function get_link_styles( array $block_attributes, Rendering_Context $rendering_context ) {
	$block_styles = Styles_Helper::get_block_styles( $block_attributes, $rendering_context, array( 'color', 'typography' ) );

	return Styles_Helper::extend_block_styles(
		$block_styles,
		array( 'display' => 'block' )
	);
}