WordPress at a glance
function is not described

block_core_social_link_get_icon() WP 1.0

Returns the SVG for social link.

No Hooks.

Return

String. SVG Element for service icon.

Usage

block_core_social_link_get_icon( $service );
$service(string) (required)
The service icon.

Code of block_core_social_link_get_icon() WP 5.5.1

<?php
function block_core_social_link_get_icon( $service ) {
	$services = block_core_social_link_services();
	if ( isset( $services[ $service ] ) && isset( $services[ $service ]['icon'] ) ) {
		return $services[ $service ]['icon'];
	}

	return $services['share']['icon'];
}