public function IconBuilderInterface::setWidth in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Layout/Icon/IconBuilderInterface.php \Drupal\Core\Layout\Icon\IconBuilderInterface::setWidth()
Sets the width.
Parameters
int $width: The width of the SVG.
Return value
$this
1 method overrides IconBuilderInterface::setWidth()
- SvgIconBuilder::setWidth in core/
lib/ Drupal/ Core/ Layout/ Icon/ SvgIconBuilder.php - Sets the width.
File
- core/
lib/ Drupal/ Core/ Layout/ Icon/ IconBuilderInterface.php, line 67
Class
- IconBuilderInterface
- Provides an interface for building layout icons.
Namespace
Drupal\Core\Layout\IconCode
public function setWidth($width);