public static function label(string $text, string $icon = null, array $iconArguments = null) {
		$content = "";
		if(isset($icon)) {
			$iconString = (string)Fa::createIcon($icon, $iconArguments);
			$content .= $iconString." ";
		}
		$content .= $text;
		return Html::el()->setHtml($content);
	}
public static function label(string $text, string $icon = null, array $iconArguments = null) {
		$content = "";
		if(isset($icon)) {
			$iconString = (string)Fa::createIcon($icon, $iconArguments);
			$content .= $iconString." ";
		}
		$content .= $text;
		return Html::el()->setHtml($content);
	}
public static function label ( string $ text , string $ icon = null , array $ iconArguments = null ) { $ content = "" ; if ( isset ( $ icon ) ) { $ iconString = ( string ) Fa :: createIcon ( $ icon , $ iconArguments ) ; $ content .= $ iconString . " " ; } $ content .= $ text ; return Html :: el ( ) -> setHtml ( $ content ) ; }
Returns element for form label with Font Awesome icon.
@param string $text Text of the label.
@param string $icon Name of the Font Awesome icon.
@param array $iconArguments Arguments for icon.
@return Html HTML element for label.
Returns element for form label with Font Awesome icon .