SvgIconProvider extends AbstractSvgIconProvider

Class provides icons that are classic <img> tags using vectors as source

Table of Contents

Constants

MARKUP_IDENTIFIER_INLINE  = 'inline'

Methods

prepareIconMarkup()  : void
Prepare the icon markup and set it to the icon by setMarkup()
generateInlineMarkup()  : string
generateMarkup()  : string
getInlineSvg()  : string
getPublicPath()  : string
Calculate public path of SVG file

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 = [] ]) : void
Parameters
$icon : Icon
$options : 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

getInlineSvg()

protected getInlineSvg(string $source) : string
Parameters
$source : string
Return values
string

getPublicPath()

Calculate public path of SVG file

protected getPublicPath(string $source) : string
Parameters
$source : string
Return values
string

        
On this page

Search results