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

Embed::create_fallback_attributesprivateWC 1.0

Create fallback attributes for link rendering.

Method of the class: Embed{}

No Hooks.

Returns

Array. Fallback attributes.

Usage

// private - for code of main (parent) class only
$result = $this->create_fallback_attributes( $url, $label ): array;
$url(string) (required)
URL for the fallback.
$label(string) (required)
Label for the fallback.

Embed::create_fallback_attributes() code WC 10.9.4

private function create_fallback_attributes( string $url, string $label ): array {
	return array(
		'url'   => $url,
		'label' => $label,
	);
}