FontawesomeIconProvider implements IconProviderInterface
Class FontawesomeIconProvider
Table of Contents
Interfaces
- IconProviderInterface
- Interface IconProviderInterface
Constants
- MARKUP_IDENTIFIER_INLINE = 'inline'
Methods
- __construct() : mixed
- prepareIconMarkup() : mixed
- Prepare the icon markup and set it to the icon by setMarkup()
- createSvgIcons() : array<string|int, mixed>
- escape() : array<string|int, mixed>
- generateInlineMarkup() : string
- generateMarkup() : string
- getName() : string
- getSvgContents() : SimpleXMLElement|null
- getSvgIcons() : array<string|int, mixed>
Constants
MARKUP_IDENTIFIER_INLINE
public
mixed
MARKUP_IDENTIFIER_INLINE
= 'inline'
Methods
__construct()
public
__construct(FrontendInterface $assetsCache, string $cacheIdentifier) : mixed
Parameters
- $assetsCache : FrontendInterface
- $cacheIdentifier : string
prepareIconMarkup()
Prepare the icon markup and set it to the icon by setMarkup()
public
prepareIconMarkup(Icon $icon[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $icon : Icon
- $options : array<string|int, mixed> = []
createSvgIcons()
protected
createSvgIcons() : array<string|int, mixed>
Return values
array<string|int, mixed>escape()
protected
escape(array<string|int, mixed> $strings) : array<string|int, mixed>
Parameters
- $strings : array<string|int, mixed>
Return values
array<string|int, mixed>generateInlineMarkup()
protected
generateInlineMarkup(array<string|int, mixed> $options) : string
Parameters
- $options : array<string|int, mixed>
Tags
Return values
stringgenerateMarkup()
protected
generateMarkup(Icon $icon, array<string|int, mixed> $options) : string
Parameters
- $icon : Icon
- $options : array<string|int, mixed>
Tags
Return values
stringgetName()
protected
getName(array<string|int, mixed> $options) : string
Parameters
- $options : array<string|int, mixed>
Return values
stringgetSvgContents()
protected
getSvgContents(string $source) : SimpleXMLElement|null
Parameters
- $source : string
Return values
SimpleXMLElement|nullgetSvgIcons()
protected
getSvgIcons() : array<string|int, mixed>