*/
private const ICONS = array(
'arrowLeft' => '',
'arrowRight' => '',
'arrowBarLeft' => '',
'arrowBarRight' => '',
'shortArrowRight' => '',
'arrowSquareLeft' => '',
'arrowSquareRight' => '',
'arrowCircleLeft' => '',
'arrowCircleRight' => '',
'caretLeft' => '',
'caretRight' => '',
'boxArrowLeft' => '',
'boxArrowRight' => '',
'boxOutLeft' => '',
'boxOutRight' => '',
'boxArrowInLeft' => '',
'boxArrowInRight' => '',
'caretArrowLeft' => '',
'caretArrowRight' => '',
'doubleArrowLeft' => '',
'doubleArrowRight' => '',
);
/**
* Retrieve an SVG icon by its identifier key.
*
* @since 3.0.0
*
* @param string $icon The icon identifier key.
* @return string The SVG markup, or empty string if icon not found.
*/
public static function get( string $icon = '' ): string {
if ( '' !== $icon && isset( self::ICONS[ $icon ] ) ) {
return self::ICONS[ $icon ];
}
return '';
}
}