BitmapIconProvider implements IconProviderInterface

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

Table of Contents

Interfaces

IconProviderInterface
Interface IconProviderInterface

Constants

MARKUP_IDENTIFIER_INLINE  = 'inline'

Methods

prepareIconMarkup()  : mixed
Prepare the icon markup and set it to the icon by setMarkup()
generateInlineMarkup()  : string
generateMarkup()  : string
getPublicPath()  : string
Calculate public path of image 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 = [] ]) : mixed
Parameters
$icon : Icon
$options : array<string|int, mixed> = []

generateInlineMarkup()

protected generateInlineMarkup(Icon $icon, array<string|int, mixed> $options) : string
Parameters
$icon : Icon
$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

getPublicPath()

Calculate public path of image file

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

        
On this page

Search results