wireIconMarkupFile() function
Get the markup or class name for an icon that can represent the given filename
Please note this method is and thus not intended to be called directly.
Example
// Outputs: "<i class='fa fa-pdf-o'></i>"
echo wireIconMarkupFile('file.pdf');
Internal usage
// basic internal usage
$string = wireIconMarkupFile(string $filename);
// internal usage with all arguments
$string = wireIconMarkupFile(string $filename, $class = '');
Arguments
Name | Type(s) | Description |
---|---|---|
$filename | string | Can be any type of filename (with or without path). |
$class (optional) | string bool | Additional class attributes, i.e. "fw" for fixed-width (optional). Or specify boolean TRUE to get just the icon class name (no markup). |
Return value
string
Functions methods and properties
API reference based on ProcessWire core version 3.0.251