SvgSpriteIconProvider extends AbstractSvgIconProvider
SvgSpriteIconProvider provides sprite icons and are rendered via <svg> tag
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
Return values
stringgenerateMarkup()
protected
generateMarkup(Icon $icon, array<string|int, mixed> $options) : string
Parameters
- $icon : Icon
- $options : array<string|int, mixed>
Tags
Return values
stringgetInlineSvg()
protected
getInlineSvg(string $source) : string
Parameters
- $source : string
Return values
stringgetPublicPath()
Calculate public path of SVG file
protected
getPublicPath(string $source) : string
Parameters
- $source : string