Automattic\WooCommerce\EmailEditor\Integrations\Core\Renderer\Blocks
Button::get_link_styles
Get styles for the link element.
Метод класса: Button{}
Хуков нет.
Возвращает
Массив.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_link_styles( $block_attributes, $rendering_context );
- $block_attributes(массив) (обязательный)
- Block attributes.
- $rendering_context(Rendering_Context) (обязательный)
- Rendering context.
Код Button::get_link_styles() Button::get link styles WC 11.0.1
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' )
);
}