Devicons
class Devicons extends IconFactory
Implements a factory for Devicons icon objects
Methods
__construct(string|null $path = null)
Constructor
__invoke(string $iconName, string $screenReaderText = null)
Creates an icon object
from
IconFactory
createIcon(string|null $name = null)
Creates an icon instance
$this
setColored(bool $colored)
Sets/unsets the width of the icon fixed
useSvgServerRoot(string $path)
No description
useSvgClientRoot(string $path)
No description
createSvgImg(string $name, string|null $alt = null)
No description
Details
at line 34
__construct(string|null $path = null)
Constructor
in
IconFactory at line 42
setIconName(string|null $iconName = null)
No description
in
IconFactory at line 53
IconObject
__invoke(string $iconName, string $screenReaderText = null)
Creates an icon object
in
IconFactory at line 59
string
__toString()
No description
in
IconFactory at line 63
bool
getDecorative()
No description
in
IconFactory at line 67
setDecorative(bool $decorative)
No description
in
IconFactory at line 78
$this
useTitle(string|null $title)
Optionally pulls the icon to left or right
at line 41
IconObject
createIcon(string|null $name = null)
Creates an icon instance
in
IconFactory at line 109
void
setIconProperties(IconObject $icon)
No description
in
IconFactory at line 120
static IconObject
get(string $iconName)
Creates an icon object
in
IconFactory at line 28
Icon
i(string $iconName)
creates a new icon object
in
IconFactory at line 28
Icon
span(string $iconName)
creates a new icon object
at line 63
$this
setColored(bool $colored)
Sets/unsets the width of the icon fixed
at line 68
useSvgServerRoot(string $path)
No description
at line 76
useSvgClientRoot(string $path)
No description
at line 101
Svg
createSvg(string $name)
No description
at line 105
Img
createSvgImg(string $name, string|null $alt = null)
No description