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

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
throws
InvalidArgumentException
Return values
string

generateMarkup()

protected generateMarkup(Icon $icon, array<string|int, mixed> $options) : string
Parameters
$icon : Icon
$options : array<string|int, mixed>
Tags
throws
InvalidArgumentException
Return values
string

getName()

protected getName(array<string|int, mixed> $options) : string
Parameters
$options : array<string|int, mixed>
Return values
string

getSvgContents()

protected getSvgContents(string $source) : SimpleXMLElement|null
Parameters
$source : string
Return values
SimpleXMLElement|null

getSvgIcons()

protected getSvgIcons() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results