You appear to be a bot. Output may be restricted
Description
Converts block attributes to HTML data attributes.
Usage
$string = AtomicBlock::get_html_data_attributes( $attributes );
Parameters
- $attributes
- ( array ) required – Key value pairs of attributes.
Returns
string Rendered HTML attributes.
Source
File name: woocommerce/packages/woocommerce-blocks/src/BlockTypes/AtomicBlock.php
Lines:
1 to 5 of 5
protected function get_html_data_attributes( array $attributes ) { $data = parent::get_html_data_attributes( $attributes ); return trim( $data . ' data-block-name="' . esc_attr( $this->namespace . '/' . $this->block_name ) . '"' ); }