IconBuilderInterface
interface IconBuilderInterface (View source)
Provides an interface for building layout icons.
Methods
array
build(array $icon_map)
Builds a render array representation of an SVG based on an icon map.
$this
setId(string $id)
Sets the ID.
$this
setLabel(string $label)
Sets the label.
$this
setWidth(int $width)
Sets the width.
$this
setHeight(int $height)
Sets the height.
$this
setPadding(int $padding)
Sets the padding.
$this
setStrokeWidth(int|null $stroke_width)
Sets the stroke width.
Details
array
build(array $icon_map)
Builds a render array representation of an SVG based on an icon map.
$this
setId(string $id)
Sets the ID.
$this
setLabel(string $label)
Sets the label.
$this
setWidth(int $width)
Sets the width.
$this
setHeight(int $height)
Sets the height.
$this
setPadding(int $padding)
Sets the padding.
$this
setStrokeWidth(int|null $stroke_width)
Sets the stroke width.